LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hi

i have real &imaginary values sperated by comma . each 2 values represent 1 point i want to get magnitude and phase of each point individually??

 
ex.  23,46 (represent one point as 23+46i)

       10,12(as 10+12i)

thanks

0 Kudos
Message 1 of 18
(3,215 Views)

Where are you having problems?  Can you not get the Real and Imaginary parts out?  Having trouble calculating the Magnitude and Phase?  Show us what you have tried and good representation of the data you are receiving.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 18
(3,203 Views)

This?

 

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 18
(3,184 Views)

1.00373363495E+00,-2.81245142221E-01,-2.47617978603E-02,-1.17851829529E+00

1.00373363495E+00    is real of first point

-2.81245142221E-01    is imaginary of first point

i want to identify this as one point?

 i want to get magnitude and phase of this point to draw it?

0 Kudos
Message 4 of 18
(3,183 Views)

As mentioned in your other thread, please give less useless titles for threads, and not "hi" or the like.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 5 of 18
(3,168 Views)

As with his other thread, no attempt to write any code. Freeloading, I suppose.

0 Kudos
Message 6 of 18
(3,166 Views)

@oiuuhjoi wrote:

1.00373363495E+00,-2.81245142221E-01,-2.47617978603E-02,-1.17851829529E+00

1.00373363495E+00    is real of first point

-2.81245142221E-01    is imaginary of first point

i want to identify this as one point?

 i want to get magnitude and phase of this point to draw it?


I would start with the Spreadsheet String to Array (found in the String pallet) with a comma as the delimeter to create a 1D array of strings.  From there, convert all of the strings into numbers, reshape the array into a 2D array (each row should contain 2 items).  Then you can use a simple for loop with autoindexing and there's a nice primitive in the Numeric->Complex pallet to convert from Real/Imaginary into Polar form.  Give it a try.  If you get stuck, show us how far you made it and what part you can't figure out.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 18
(3,149 Views)

@elset191 wrote:

As mentioned in your other thread, please give less useless titles for threads, and not "hi" or the like.


A descriptive title also makes it likely that you will get valid results from the search you must make before you post.  Unless you're too lazy to look through them of course. Smiley Sad

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 8 of 18
(3,140 Views)

Try this...

Download All
0 Kudos
Message 9 of 18
(3,110 Views)

I convert to 2D array.
now, how i can make it real and imaginary ??
26+49i
81+93i
thats what i want to get ?

0 Kudos
Message 10 of 18
(3,054 Views)