LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save & retrieve multiple waveforms to a file in LV 5.1

I am trying to save/retrieve multiple waveforms in an array of clusters >32k points to a file and find that the several traces are redrawn one after another rather than simultaneously.
0 Kudos
Message 1 of 4
(2,891 Views)
Are you having trouble representing the data in parallel form in the file, or is it that you are having trouble actually graphing the data? It sounds like you are having trouble specifically with graphing the data. If you want the data to plot all at the same time, you would want to read the entire file at once, getting an array of waveforms, and plot them all to the graph at the same time. If you read the waveform one at a time and then graph each as you read it, the the graph will display only the plot that was last sent to it.
0 Kudos
Message 2 of 4
(2,891 Views)
Thanks for the comment: to help clarify, I wrote a little program that enables me to assemble and scale several waveforms and plot them on the same graph. Then I can scale them individually and move back and forth along the 'x' axis. The problem happens when I want to take a 'snapshot' of the finished product. I save the composite waveform to a file but when retrieved, it comes back as one long waveform instead of several short ones. The purpose of the program is to be able to line up and compare several waveforms at a time showing risetime, amplitute etc. on the same graph.I don't really know if LV is writing all data simultaneously; I'm just creating and writing to a file(either binary or SGL etc.). JW.
0 Kudos
Message 3 of 4
(2,891 Views)
What are you using to save the data. Are you saving it as an array af waveform datatypes using the waveform file I/O VIs, or are you saving the data as a 2D array of singles. If your saving it as a 2D array, do you save it by wiring directly to the Write primitive, or do you use the write to spreadsheet VIs? Its probably easiest to demonstrate by example. See if this VI helps.
0 Kudos
Message 4 of 4
(2,891 Views)