LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to convert two waveforms into arrays and graph

I need to take data from two wave forms, which are essentially sine waves at this point, and convert them into 1-D arrays of numerics. Eventually I will take the voltages, amplituces, from these numerics and plot them against each other, but I cant get from the waveform into an array that I can manipulate.
0 Kudos
Message 1 of 3
(2,216 Views)
Hello,

This is pretty straightforward--the waveform datatype is a special datatype that contains three main components: the t0 (initial time), the delta t (space between points), and a 1-d array of the Y-values of the waveform.  To access this array, simply use the Get Waveform Components function on the waveform to access the 1-D array. It's located in the Programming » Waveform palette in LabVIEW8.

--Paul Mandeltort
Automotive and Industrial Communications Product Marketing
0 Kudos
Message 2 of 3
(2,203 Views)
You can use the "Get Waveform Components" VI to convert the waveform data types to 1-D arrays. For each waveform, the array of points will come out of the "Y" output of the get waveform components VI.
 
Hope this helps.
 
Casey Weltzin
National Instruments
0 Kudos
Message 3 of 3
(2,201 Views)