Overview This example illustrates how to synchronize strain measurements and encoder measurements using an NI 9237 and an NI 9401 with DAQmx.
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.
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.**
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?
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...
Is the filter delay from the anti-aliasing filter by-passed in this code because you are using the ai-input trigger?
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 -