Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

continuously monitor analog input data prior to data processing

I have a program which acquires analog data, plots it on a waveform graph, and finds peak locations and amplitudes. I want to be able to monitor the graph in near real-time; then perform the calculations and write to a spreadsheet file after I have stopped the acquisition. I have only been ablo to see the graph after the specified # of acquisitions are complete. Or, as I now have it, I acquire continuously, but then the calculations are computed on only the last second of data. How do save all of the data in a buffer? Do I have to use a data socket? File is attached
0 Kudos
Message 1 of 5
(3,638 Views)
Hello,
I took a look at your code and noticed something helpful. When you wire your signal out of the while loop, it will only output the data that was present at the last iteration of the while loop. If you enable indexing (right click on the output terminal of the while loop and select 'enable indexing') then you will get an array of all data that has been acquired. Then you could loop through that array with a for loop to do your data processing and writing to file. You will want to make sure you select append to file on the Write LabVIEW Measurement File. I have made all these changes to your original code and attached it here. Hope this helps!
-Alan A.
0 Kudos
Message 2 of 5
(3,625 Views)
Thank you, Alan. Could you save that VI in Labview 7.0?
0 Kudos
Message 3 of 5
(3,620 Views)
0 Kudos
Message 4 of 5
(3,616 Views)
Enabling indexing and using a for loop allowed all of the data points to be saved to excel. But the find peaks and numerical integration functions do not work. Any suggestions?
0 Kudos
Message 5 of 5
(3,601 Views)