08-07-2013 02:21 PM
I am trying to read data from a DAQ at a sampling rate of 50 kS/s and record it to a file. My application needs to run for at least a few hours. Initially, I tried a producer-consumer loop pattern with a Write to Measurement File Express VI, but it wrote the data too slowly, and my queue filled up. Now I am trying to use the Write to Spreadsheet File VI with or without a producer-consumer loop pattern (see attached VIs). Both seem to write data to file, but neither writes the number of datapoints I would expect (both have far fewer datapoints).
What is the best way to write this data to file? This seems like a basic question, so if it has already been discussed at length in another forum, or if there are examples of it which someone could direct me to, that would also be appreciated.
Thank you!
Solved! Go to Solution.
08-07-2013
02:31 PM
- last edited on
08-12-2024
02:13 PM
by
Content Cleaner
Hvea look at "Stream Data Directly to Disk with TDMS in LabVIEW".
08-07-2013 06:04 PM
Thanks drjdpowell! I think using TDMS will work. I wanted the data in a human-readable format, but I can use a second VI for that.
08-08-2013
08:30 AM
- last edited on
08-12-2024
02:14 PM
by
Content Cleaner
I agree that TDMS is probably the best way to go for fast data streaming.
I also want to point out that you can read TDMS files with some spreadsheet software. This makes it easier to manage and provides a method for human readability.
Add in tool for Open Office Calc
Add in tool for MS excel
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019VhwSAE&l=en-US
Jeremy P.
08-08-2013 09:49 PM
You can also use TDMS File Viewer from "File I/O"->"TDM Streaming" palette to "read" your TDMS files