03-03-2009 05:53 AM
Hello
I am having a 2D array of double complex numbers which i have to plot an intensity graph. Now i create property node to scale the Z scale with the maximum and minum range. See the attached VI. There is a clash between the type .... how ist possibel to convert them?
Thanks
Solved! Go to Solution.
03-03-2009 06:30 AM
Under Numeric->Complex you have Complex to Re/Im
I think it'll solve your problem
/Y
03-04-2009 09:55 AM
Hello Yamaeda
Actually what i needed was to get the magnitude of the complex number to be plotted.
So changing it to re/im wont work.
is there any other option to scale the graph?
03-04-2009 12:53 PM
03-04-2009 01:24 PM - edited 03-04-2009 01:26 PM
smercurio_fc wrote:
If you just want to plot the magnitude then pipe your complex value into the Complex to Polar function.
Since you only need the magnitude (and not the phase) use the absolute value function on the complex 2D array. It is slightly faster because it is simpler and gives the same result. 😄

03-04-2009 01:36 PM
altenbach wrote:It is slightly faster ...
Really? Interesting. I can't say I ever benchmarked it. Is this specific to a LabVIEW version?
03-04-2009 01:51 PM
I specifically studied this (and more) in detail very long ago. It certainly requires less internal code, because it does not need to calculate the output for Q. 🙂
(I don't know if the newest LabVIEW versions changed things, but I doubt it.)
03-04-2009 02:10 PM
03-04-2009 03:53 PM
Thank you evry one!! both ways wrked....