LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform array to double array

Hello all,

I'm having some issues with the waveform data type...  I have a 2D waveform array (more than one plot), which I'd like to get the Y values out for a few specific plots.  The problem is, all the built in VIs seem to only use scalar waveform data, which for my purposes, would get very cumbersome to get the right Y values out.  Is there some way to just convert the waveform array's Y values to a double array?

I realize that by nature, in a scalar waveform, the Y value is an array, but even if there could be some conversion done where the 2D waveform array converts to a 3D double array that could work...for me anyways.

Thanks for any help,

Geoff
0 Kudos
Message 1 of 5
(2,949 Views)

Try this sample. 7.0 format

 

 

0 Kudos
Message 2 of 5
(2,922 Views)
Thanks for the reply...  Tha't more or less what I've got at the moment.  I just thought there might be an easier way, since my 2D array is 6xvarying number of samples, and I need to get averaged values for 3 of those 6, and it's getting a little messy, and I imagine the number of For loops can't be all that efficient, but I don't know a whole lot about that stuff so...

I guess I'll just make it work this way though!  Thanks again,

Geoff
0 Kudos
Message 3 of 5
(2,918 Views)
If you only need a few spcific plots, it does not seem to make sense to extract them all into a 3D array. Couldn't you just use "index array" on the 2D array of waveforms to get the desired plot(s), then get the y component?
0 Kudos
Message 4 of 5
(2,917 Views)
Yeah, that's what I have, but I then need different subsets of that array (averaging time specific periods of data collection), and that gets me more junk cluttering up the loops...  I think I may just be complicating things for myself.  Thanks for the advice guys.
0 Kudos
Message 5 of 5
(2,914 Views)