Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted

01-28-2016 07:56 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

best Regards

Thoalfukar

Highlighted
Options

01-28-2016 08:06 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Actually I could do the spiral but on the midpoint of the line .... I want to be able to move it along that line

thank you

Highlighted
Options

02-01-2016 08:12 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Thoalfukar,

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:

https://decibel.ni.com/content/docs/DOC-28831

To move along a line could you just add a weighting to the real value?

Kind regards

Pete

Certified LabVIEW Architect

Highlighted
Options

02-01-2016 08:42 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Pete,

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

best regards

thoalfukar

Highlighted
Options

02-05-2016 12:37 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi every body,

I just want to renew my post in order to get help to do this type of plot ..

thank you

best regards

Thoalfukar

Highlighted
Options

02-05-2016 02:00 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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

Highlighted
Options

02-05-2016 04:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Alexander,

Thanks alot for your attention.

actually by your code the location of the spiral should be adjusted the by the user while I want it aoutomated. I mean the spiral follows two points (the start of the spiral = any location on the line ) (the end point = the real part of the Maximum Reflection Coefficient )

please see the attached picturs

thank you again for yor attention

Download All

Virus scan in progress. Please wait to download attachments.

Highlighted
Options

02-07-2016 11:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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.

Highlighted
Options

02-12-2016 04:51 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Alexander,

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

best regards

Thoalfukar

Highlighted
Options

02-12-2016 09:48 AM - edited 02-12-2016 09:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

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.