LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to record 50 kS/s data to file

Solved!
Go to solution

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!

0 Kudos
Message 1 of 5
(2,815 Views)
Solution
Accepted by alexwright
0 Kudos
Message 2 of 5
(2,812 Views)

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.

0 Kudos
Message 3 of 5
(2,779 Views)

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

https://www.ni.com/en/support/documentation/supplemental/07/tdm-add-in-tool-for-openoffice-org-calc-...

 

Add in tool for MS excel

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019VhwSAE&l=en-US

 

Jeremy P.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(2,746 Views)

You can also use TDMS File Viewer from "File I/O"->"TDM Streaming" palette to "read" your TDMS files

0 Kudos
Message 5 of 5
(2,714 Views)