Hi Every Body,
I am developing RF measurement system. In My code I need to distribute complex numbers as a spiral but I should be able to have a control on the spiral's location. the location of the spiral should be along Line. the line is ploted between two points and those points are complex numbers (R +Ij ). Please see the attached picture.
could any of you help me in doing that.
Thank you in Advance for your attention
Is the picture that you attached from your own code or it is taken from someone elses? Can you upload/screenshot any code that you have tried?
This community page shows how you might plot a complex number on an XY graph:
To move along a line could you just add a weighting to the real value?
Thank you so much for your kind reply.
please see the attached file of my code.
If you notice that this code now work as I want but the problem is I did it by try & error and I can't explain how it works. the other thing is when I change the unit of values the code will not work correctly. it strainge a litil bit.
thank you in advance for your attention
I am 2011, do not see your code. Why can not you add constant complex number to an array to shift it as a whole?
PS. Link property node to xy graph, making snipped disconnected it
Then I do not understand your problem.
Now your code can generate a spiral at given location based on input parameters (% Line, start, end, max radius = max reflection, number of circles = phases). Output - either a complex array (values) or cluster of Real and Imaginary parts. Clustter you can wire to the graph, values are easier to process).
(VI needs some cleaning. You do not need for loops in it - "build array" accepts element, it does not require array of these elements. Passing parameters with local variables if you can replace them with wires is a very bad style).
Make it a subVI and call it, varying any parameter you need.
Do you need it to bounce along line with loop iterations? .Convert loop iteration into % Line and show new spiral every time.
Do you need 3 spirals for 3 different lines? Call this subVI 3 times with 3 different start and end point values.
You can already join multiple clusters into array and show them on one graph, show one Line and these 3 spirals on one graph, not a problem.
Thak you so much for your attention.
I am not sure where is the problem. It seems that the code is fine but is not give me the right plot. I think the problem the units that I am using.
thanks again for your help
And what is wrong with the plot? Does it place spiral center into wrong place?
Can you save vi for 2011?
One more question: Do you have coercion dots disabled? Your Max and Min powers are complex, and % of displacement along the line is real. There should be a coercion dot, though calculations should be fine.
I do not like LV units. If I need to display something in the numeric number, I edit format string. With advanced editing of display format and si notation it gives me most of the things I need. Automatically display 1.4MHz for example in the numeric field instead of 1400000 and Hz in caption or units.