09-12-2008 03:55 AM
I would like to know how to specify the position of more than one cursor in an XY graph programmatically. Is there a propoerty node that can select each cursor in a graph based on their name??
Thank you
09-12-2008 04:05 AM
Hi teddy_aua,
you can use the property "active cursor". With the property Cursor.name you can read the name of the active cursor. With these properties you can build an array of all your cursors and their names. In this array you can search for a specified name with the "normal" array function. If you found it, set this cursor as active cursor and change the position.
Hope it helps.
Mike
09-16-2008 03:12 AM
hello,
thank u for ur suggestion. It would be great if you could provide a sample program that does this.
thanks
09-17-2008 11:12 AM
Hi Teddy,
You can also use the Cursor List property node. This will provide the name, index and position of each cursor. I have attached an example of this and how to use the active cursor node.
Let me know if you have any questions about it.
09-20-2008 12:47 AM
Hello,
Thank you very much for your reply, but I have LabVIEW version 8.5 and was unable to open ur example. COuld you kindly send me the file in a lower version?
Thank you
09-22-2008 12:16 AM
Hi Teddy,
Attached is version 8.5 of Mark's example VI.
Please let us know if you need further information.
Best regards,
Quoc Hung
Applications Engineer
National Instruments ASEAN
09-24-2008 02:55 AM
Hello Quoc Hung,
Thank you very much for your sample VI. It worked nicely. I also want to know the following.
When displaying two plots in an XY graph, how can the plot colors be changed programatically? Also, is there a way to programatically change the plot legend as well?
Thank you again
09-24-2008 05:09 AM
Hi Teddy,
You can use Property Node to do that as well.
Please see a simple example attached.
Best regards,
Quoc Hung
Applications Engineer
NI ASEAN
09-25-2008 01:10 AM
Hello Quoc Hung,
Thank you again. It worked well. However, I want to programatically check whether any plots are available in an XY graph before plotting a new graph. I tried using the equal operator but it does not work. Is this possible?
Thank you in advance
10-02-2008 12:07 AM
Hello Quoc Hung,
Any idea on my previous question? Also, I would like to know whether it is possible to change the color of a cursor name. It automatically takes the color of the cursor, but I want to change the name color. Is this possible?