LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writting data values to tdms

Hi,

 

          I have a question reguarding writting data to tdms file. I have a data from a generator measurement, i have to write to tdms file at 10hz, 100hz and 1000hz. What's the best way of wrtting the data without loosing any data during writting? i'm using a normal pc in which a labview program is running and also the test will run upto 10 hours.

0 Kudos
Message 1 of 2
(2,132 Views)

Look into the Producer/Consumer design pattern.  What you want to do here is do your acquisition in one loop and your saving of the TDMS data in another loop.  You send the data from the acquisition loop (producer) to the file saving loop (consumer) using a queue.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,105 Views)