12-05-2012 09:57 PM
Hi There
I'm trying take a snapshot of my data stream once every 5 seconds and write it to a .LVM file. I'm having trouble with the "Write to Measurement File" VI. The rate at which it writes data to the file appears to be dictated by the "Samples to Read" parameter in the DAQ assistant. I've tried placing the "Write to Measurement File" VI inside a case structure and initiating the case structure with an "Elapsed Time" VI. This only results in a 5 second delay before the "Write to Measurement File" VI initiates. Once the "Write to Measurement File" VI is initiated it begins writing at 20 x per second. Is there a way to change this or dictate the rate at which the "Write to Measurement File" VI exicutes?
My reason for slowing down the write rate are, 1) Reduce disk space taken up by my data file. 2) Reduce CPU usage and hard disk access cycles.
The reason I can't increase the "Samples to Read" value in the DAQ assitant (to match my data writing requirement) is that my VI will begin to miss events and triggers.
I'm sure I can't be the only person who needs high frequency data acquisition and low frequency writing of the processed data to disk? I can't however see a straight forward way of achiving this.
The hardware I am using is a NI USB 6008 DAQ, acquiring analogue voltage data at 100hz.
Thanks in advance for your help
Cheers
Kim
Solved! Go to Solution.
12-05-2012 11:09 PM
12-06-2012 12:05 AM
Dohhh!
The re-set function wasn't set in the elapsed time VI!
Many thanks!
Cheers
Kim