To download NI software, including the products shown below, visit ni.com/downloads.
This example explain how to use two different rates to read data from a DAQ device (waveform format) and write these data to a file in the HD.
Using a Producer/Consumer structure, DAQmx reads data from the card buffer at one rate, and this information is written in a file slower (3 times slower in this example, but same structure can be use to write XX times slower just modifying few things). The example “Producer/Consumer pattern :: Read Double data from a device and write these data to TDMS file at two different rates.” write information 11 times slower.
Note that DAQmx also supports writing to TDMS directly from the API.
**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.