07-12-2009 05:43 AM - edited 07-12-2009 05:47 AM
I will like to extract the values of the cursors? Is it possible?
I am ploting the reel and imaginary part of the input impedance (Z11 calculated from the S parameter) on a X Y graph. If I could get the cursors values (frequency, impedance and reactance) of both traces, I could calculate the equivalent circuit at the cursor position.
Thank you
Solved! Go to Solution.
07-12-2009 06:21 AM
Using property nodes you can do that
First set the cursor you want then read the "Cursor.Position" property.
See attached partial screenshot.
Hope this helped 🙂
07-12-2009 06:34 AM
...yes, I found it. I was exploring the Create and Property Node...
Thank you
07-12-2009 06:57 AM
07-12-2009 07:13 AM
07-12-2009 09:51 AM - edited 07-12-2009 09:55 AM
To help you on this one I should see your vi since it worked well for me!
Changes mad by user are directly reflected in the property node.
I just looked again at you code and that's not what I posted
You need to first set an active cursor with property ActCrsr and then read the cursor position with Cursor.Position
So please try again using the correct code.
07-12-2009 11:57 AM
Alain,
I attached the VI. This is my first program and it is not finish. It will not run on your computer because some file are missing to drive the network analyzer. You will be able to modify the section for the cursor and post it back. I appreciate your help.
After extracting individual S parameter, I first convert the S11 or S22 for plotting on a Smith chart (which I have a ratio problem). In the same FOR LOOP, I convert S to Z and used only the Z11re and im impedance to plot and calculate R, L and C. I detect the sign of the Z11im and applied the XL or XC formula.
I will like to move the cursor and show if it is a L or a C with the value (to be done). I bring up the actcrsr and Cursor position but don't know what to do....
With the Cursor Index, I extracted the value with an Index Array for the Frequency, the reel part and the imaginary part of the graph at the cursor position...but this work once when RUN.
Thank you
François
07-12-2009 12:18 PM - edited 07-12-2009 12:22 PM
Bonsoir François,
I propose that you extract only the graph WITH data and put it in a new vi so that I have real data to work with 🙂
You should not read the "ActCrsr" property but write which cursor you want information from.
Then read the cursor location with the "Cursor.Position" property.
Regards
Alain
07-12-2009 12:50 PM
07-12-2009 01:35 PM
Absolutely Dennis, I noticed that also!
That's why I asked for a new vi with only the graph with usefull data.
By then modifying the VI he would have seen what's wrong in his code 🙂