Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform chart. Send data to Excel

I am monitoring the output voltage from a electronic circuit using LabView 7.1 and a DAQ card.
I have been able to view the output voltage using a Waveform Chart but i have been unsuccessful sending the data to a file. Only one data point gets saved each time.
I am using the "Write to Spreadsheet File .vi "

Could someone tell me what i am doing wrong?

Please see the program attached below.
0 Kudos
Message 1 of 2
(3,079 Views)
You can build a 1D array as your loop runs. Where your data exits the while loop, right click on the border and select 'Enable Index'.

If you want to save data continously, you need to move your 'Write to spreadsheet file' vi inside your while loop. As it is, only the last data point will be saved when you stop your loop.
You will also need to connect a control or constant to the file path input so that you do not get a file dialog every time your loop iterates. Further, connect a True constant to the 'append to file?' input so that you do not overwrite data.

Also, you may want to insert a wait period in your loop to allow other processes to run.

Message Edited by DavidT on 04-27-2005 09:16 AM

0 Kudos
Message 2 of 2
(3,071 Views)