This example explain how to use two different rates to read data (Double format) from a DAQ device and write these data to a file in the HD. Using a Producer/Consumer structure, DAQmx read data from the card buffer at one rate, and these information is written in a file more slower (11 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 Waveform data from a device and write these data to TDMS file at two different rates.
” write information 3 times slower.
Steps to Complete
Select a single channel from a DAQ device in the control “Physical Channel” inside Channel Parameters group. Set de Max and Min value for this channel, the “Sample Rate” and the number of “Samples to Read” per iteration.