LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mergin cluster and dynamic data

Solved!
Go to solution

Look at my example, build an array of waveforms. Your Sine seems to have t=0 in the waveform, thus all Y values are positioned at x=0.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 11 of 26
(2,028 Views)

thanks yamaeda,

i tried your solution but they gave me this message

brokwire1.pngbrokwire2.png

0 Kudos
Message 12 of 26
(2,021 Views)

You can use Build Waveform (+Unbundle) to convert from Cluster to Waveform.

ConvertToWaveform.png

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 13 of 26
(2,012 Views)

i did it already and that doesn't work!!brokwire3.png

0 Kudos
Message 14 of 26
(1,997 Views)

Hi uzumaki,

 

the waveform datatype does NOT take a 2D array!

Again: you cannot combine incompatible datatypes!

 

Either stick with your cluster of [x0, dx, 2D-array of Y] or create a proper 1D-array of waveforms…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 26
(1,993 Views)

hi GerdW,

how can i transform 2d array to 1d array without losing data.

I tryed to use index array but it's doesn't work.

 

0 Kudos
Message 16 of 26
(1,993 Views)

Is the 2D array several channels sampled at the same time? If so, you can do the Build waveform in a loop, which'll extract a 1D each loop iteration.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 17 of 26
(1,975 Views)

yes,it's a several channels sampled.i did a loop but when i want to connect the  array's size to N it said  that the size of the array is an array!!

loop.png

0 Kudos
Message 18 of 26
(1,964 Views)

i tryed to unbundle my cluster then i transformed my Daynamic Data to an d array of scalars and i bilt a new array (cluster's array+DD' array),after that i bundled all that and that gave me this result :

ddtoclust.pngddtoclust.png

0 Kudos
Message 19 of 26
(1,958 Views)

I have a suggestion that will help you and also help us to help you.  Write the smallest program that you can that (a) gathers data from your device and (b) plots it.  Get rid of all the other plots and as many other things as you can.  Don't worry that it doesn't work, we'll help you "figure it out".  Be sure to attach a VI of your code -- we can't work efficiently from a picture of the code.

 

Right now, I don't understand what you are doing and why you are having so much trouble (though when I see Dynamic Wires and Express VIs, I immediately start to worry).  Making multi-channel plots of multi-channel data is something that LabVIEW does very well, and (usually) very easily.  Starting with "simpler" code, you can probably figure it out by yourself, but we're certainly happy to help.

 

Bob Schor

0 Kudos
Message 20 of 26
(1,949 Views)