LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Splitting an array element

Solved!
Go to solution

Hi, I have an array that outputs the data in the form of "10+10i" where the 10 represent the x-axis and the 10i represents the y-axis. I want to get two independent arrays for x-axis and y-axis(without the "i" ), is that possible? thanks for your help. 

 

A.

0 Kudos
Message 1 of 4
(3,298 Views)
Solution
Accepted by topic author AHmedalnahdi

Numeric >>  Complex palette.   Complex to Re/Im function.

 

What are you doing with this data.  Because you can feed a complex number directly to an XY graph.

0 Kudos
Message 2 of 4
(3,277 Views)

Trying to understand...

Do you have a complex array of type X + Y*i (X being the real part and Y the imaginary part) and do you want to split it you to two independant real arrays ( X and Y)?

 

If that's the case just use the Complex to Re/Im primitive.

 

Complex to Re_Im.png

 

If not please explain in more details what you are trying to achieve.

0 Kudos
Message 3 of 4
(3,273 Views)

Thanks guys that solved my problem .Cheers 

A.

0 Kudos
Message 4 of 4
(3,259 Views)