From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example illustrates how to synchronize strain measurements and encoder measurements using an NI 9237 and an NI 9401 with DAQmx.
Description
This example synchronizes strain measurements from an NI 9237 and encoder measurements from an NI 9401. Both are used in a cDAQ-9178, but will work in cDAQ-9174 as well.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi JSchwartz,
Are you 100% sure the counter measurement sill be synch with the 9237? My doubt is because of the oversampled clocked used by the 9237 because of the sigma-delta ADC..... In the code, the counter sampling clock is the AI/SampleClock...Will this be the final data rate (50kS/n where n=1-31) or the oversampled-clock that goes to the sigma-delta ADC of the 9237?
Thanks,
Vincent
Just to answer myself....
I was told that the AI/SampleClock is the actual sampling clock and the the oversampled-clock for the Sigma-Delta ADCs is given by the AI/timebase...
Vincent
Is the filter delay from the anti-aliasing filter by-passed in this code because you are using the ai-input trigger?
Thanks
Dammond
It has been quite a while since I posted this, but I don't believe that the ai input trigger would make a difference. You may still need to account for the filter delay. This can easily be done by following the steps in this Knowledgebase -
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8toSAC&l=en-US