LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Less than expected number of samples in Labview

I have a USB 6009 device that will be measuring a signal coming from a load cell. I used the DAQ Assistant to start my program in Labview. I selected the continuous button for how many samples to read. I then wired the output signal to a "scale waveform" vi which is then wired to both an output graph on the front panel and a "write labview measurment file" vi. In the DAQ Assistant I left the sample rate and number of samples at the default of 1000 each. I run the program for a couple seconds and when I open the measurement file I only have 1000 data points. I have read through the help and it seems to indicate that if continuous is selected then it will record all samples until the program is stopped.
 
I have a while loop around the assistant vi and the stop terminal of the assistant vi is wired to the stop button of the while loop.
 
How do I get it to output all of the samples for as long as the program is run?
0 Kudos
Message 1 of 3
(2,571 Views)
Consider setting the APPEND TO FILE option in the WRITE LABVIEW MEASUREMENT FILE vi.

Without it, the VI will write a new file every loop, overwriting the previous one.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 3
(2,566 Views)
Thank you forthe input. I was able to figure out the problem. It was a combination of moving the write to file into the while loop with the assistant and appending to file.
0 Kudos
Message 3 of 3
(2,562 Views)