Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

save a waveform chart

Hello!

I am trying to save a Waveform chart into a file usin the Save waveform to a file.

I have been doing test with ramdom numbers in little programs and I was able to save then in waveforms, but I can not do the same in the program that recieves the serial data.

I have attachet my program.

I well be be gratefull if someone could help me. I am sure is a little thing what is wrong but I can not find it.

Thank you for your help.

Angel
0 Kudos
Message 1 of 3
(3,241 Views)
Hello angel,

First check whether you are receiving any bytes from your serial ports. If so check you are getting any data on the waveform chart.

If both these are happening your VI will work.

Thanks,

M.Valliappan.
0 Kudos
Message 2 of 3
(3,195 Views)
And unless you only want only the very last acquisition recorded, you're going to have to change your VI. When the while loop stops, all it passes to the write waveform is the very last 1D array captured. If you want all data saved, put the write inside the while so that with every iteration you append to the same file. Or, turn on indixing where the 1D array exits the while loop. This will create a 2D array of all data acquired. Also, using Write Waveforms to file is probably not the best function unless you are actually creating a waveform datatype with timing info. Write to Spreadsheet will write a 2D array of DBLs or create a waveform datatype inside the while loop
0 Kudos
Message 3 of 3
(3,192 Views)