To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This code will synchronize a 9237 strain task with a counter input task for frequencies lower than 1613 Hz.
Description
When measuring from a NI 9237, the minimum frequency is 1.613 kHz. For a counter measurement of frequency with a NI 9401, your sample clock rate must be slower than your measured frequency. In the case that the measured frequency is less than sampling rate, you will get error -201314. This error instructs to lower the sample rate, which is impossible to do directly and still directly share the 9237 sample clock.
To lower the sampling rate of the 9401, you can use a counter output task to decimate the 9237 sample clock. This will still allow the 9237 and 9401 measurements to be synchronized.
Requirements to Run
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**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.