06-19-2008 12:06 AM
06-19-2008 12:20 AM
06-19-2008 12:28 AM
Hello Jeyanthi
For playing with the cursor properties you have to use the property node to acces the cursor position and then write the value to it. The cursor position can be adjusted for both the x and y axis by selecting the appropriate property node. Property nodes can be accessed by doing a right click on the xy graph terminal and then select the property that needs to be set.
I have attached a small Vi for your understanding. In this VI even if you scroll the cursor it still comes back to the center position of x axis.
Hope it helps
Ankit
06-19-2008 01:34 AM - edited 06-19-2008 01:35 AM
06-19-2008 03:29 AM
thk u. another help
how to set the plot color to contrast color for the first plot.
06-19-2008 03:31 AM
01-20-2013 08:57 AM
@altenbach wrote:
Here's a simple example (LV 8.0) showing how you can center the cursor with a button press.
Message Edited by altenbach on 06-18-2008 11:35 PM
If some is looking for centering XY graph cursor programmatically, in LabView 2K12 it is possible to do this with locked cursors too.
There is a difference between setting XY position through property node and setting X and Y like in altenbachs example, that will result in moving the cursor to closest last set scale e.g. X or Y like the above case.
To deal with it, just set it directly through cluster as it uses 2D search instead of 1D.
08-19-2014 03:36 AM
Hi!
I have tried to implement this into my program, but for some reason it doesn't seems to work. The difference is that i have two vertical cursors that i want to bring to center. I have written a separated program just to verify if the center cursor code it self was wrong but it wasn't. It seems that my original code cant comprehend with this center function.
I was wondering if someone could take a look and help me understand why it is not working.
Best regards Maurlind!
08-25-2014 02:09 AM
I noticed that when I have the cursors set on"watch , all plots" The center function did not work. If i turned it of it centers my cursors, but then the main function of my cursors doesn't work. Because I need my cursors to be set on watch all plots in order to get the data required for my program. Is there a way to avoid this problem ?
Best regards Maurlind!