LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS File has too many samples

Hello!

I am attempting to generate a new TDMS file per trial and each file will contain the information for 10 seconds of each trial. Even though I have set the sample rate as 1 sample per 0.001 seconds and am collecting data for 10 seconds, the TDMS file has more than 10,000 samples. When I examined the TDMS file I see that some data points are saved twice (as in one time stamp is repeated 3 to 4 times). I am unsure of how to make sure only 10,000 samples are saved to the TDMS file. I have attached my VI and would appreciate any help!

0 Kudos
Message 1 of 2
(570 Views)

Check the Iteration terminal at the bottom left of the while loop to see how many iterations have actually run.

 

Using variables to stream data across loops is a terrible idea.

You should use Producer/Consumer Read Waveform Data and Write to TDMS

Or you could use the built-in logging feature of NI-DAQmx. See NI-DAQmx High-Speed Streaming to Disk

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 2
(560 Views)