LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire continuous data but write to excel at intervals

Solved!
Go to solution
I am acquiring continuous data (voltage & temp) from a DAQmx unit. At the same time I would like to record to a spreadsheet X number of samples (say 100) at 1minute intervals only. Also, I would like to really only record two values from those 100 samples (a min & max value). I have a working code, however I cannot figure out how to write to spreadsheet at the 1 minute intervals for X number of samples. So I am stuck. TIA
0 Kudos
Message 1 of 4
(3,051 Views)

you should probably think about using a producer consumer loop

 

see this online tutorial: http://zone.ni.com/devzone/cda/tut/p/id/3023

 

 

0 Kudos
Message 2 of 4
(3,046 Views)
Thanks for the info. I will have to examine how to modify my code to use the producer/consumer design. Would I simply put my acquisition of data in the first loop, with my graphs etc. Then create a second while loop to record the data. I dont under stand the third part of the diagram "release queue". Sorry I'm a NOOB! Smiley Indifferent
0 Kudos
Message 3 of 4
(3,016 Views)
Solution
Accepted by topic author bounceny

you are correct about the two loop.

 

the other part is to close the queue like closing a file

0 Kudos
Message 4 of 4
(2,996 Views)