LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I extract the x-values from a waveform cluster (x0, dx and Y)?

I have a waveform cluster (x0, dx and Y) and I want the x-values in a one-dimensional array. How do I do that?
Message Edited by arnold_w on 08-18-2008 06:14 AM
0 Kudos
Message 1 of 7
(3,202 Views)

Hi arnold_w,

you can use a for loop to get them. Connect the size of Y to the loop count and add inside the loop dx to the value before, start with x0 or whatever you need.

Hope it helps.

Mike

0 Kudos
Message 2 of 7
(3,195 Views)
Ok, thanks. I was hoping there would be a conversion function for this, but I guess there isn't.
0 Kudos
Message 3 of 7
(3,185 Views)

Hi arnold_w,

this is your conversion function. Smiley Wink

 

Hope it helps.

Mike

0 Kudos
Message 4 of 7
(3,170 Views)
There is a built-in function if you want an array of timestamps. It's called Get Waveform Time Array.
0 Kudos
Message 5 of 7
(3,163 Views)
Ok, thanks!
0 Kudos
Message 6 of 7
(3,147 Views)

there is a function: Convert Spectrum Cluster to XY Cluster

 

then you can unbundle to get the X component

0 Kudos
Message 7 of 7
(2,731 Views)