LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving waveforms created by a for loop into a spreadsheet file

In my for loop, I generate a waveform (I have four channels so I generate four waveforms). After I get the waveforms, I want to be able to put all the waveforms into columns of a single spreadsheet file. But whatever I try doing, when I use WriteToSpreadSheet.vi the first three columns come out as all 0s and only the last channel gives a reading. What should I do?
0 Kudos
Message 1 of 2
(2,683 Views)
If all you want to save is the Y data then you should be extracting that from the waveform arrays before doing the write. The alternative is to use the Export Waveforms To Spreadsheet File (1D).vi function that is on the Waveform>Waveform File I/O palette. I've shown both methods in the attachment. If you still get all zeroes for data in the first three columns, then something is wrong in your for loop when the data is being acquired. Attach your VI so someone can look at it.
0 Kudos
Message 2 of 2
(2,683 Views)