LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cursor in XY-Graph

Hi,
I´m using Labview 6.02 and have a question about the cursor in an XY-Graph.
My task is to set the cursor at the beginning to the zero-position (X). Of
course this is working only in free-mode. The next task is to prevent
scrolling. I have done this with the entry
scrollGraphCursors=FALSE
in the labview.ini-file. But this doesn´t work I expect. Now it´s possible
to move the cursor out of the draw-area (so the cursor is not visible). If
you release the mouse now you will never get control to the cursor again.
But I can´t use the ´lock to plot´ mode because of my task #1.
Has anyone a good idea?
Thanks in advance.

Best regards,
Uwe.
0 Kudos
Message 1 of 3
(3,406 Views)
Don't set anything in labview.ini.

Set the Cursor Location and then Trackable attributes. See the attached VI.
Message 2 of 3
(3,406 Views)
Uwe Rößner wrote:
> Hi,
> I´m using Labview 6.02 and have a question about the cursor in an XY-Graph.
> My task is to set the cursor at the beginning to the zero-position (X). Of
> course this is working only in free-mode. The next task is to prevent
> scrolling. I have done this with the entry
> scrollGraphCursors=FALSE
> in the labview.ini-file. But this doesn´t work I expect. Now it´s possible
> to move the cursor out of the draw-area (so the cursor is not visible). If
> you release the mouse now you will never get control to the cursor again.
> But I can´t use the ´lock to plot´ mode because of my task #1.
> Has anyone a good idea?
> Thanks in advance.
>
> Best regards,
> Uwe.

You don't need to use the ini file for anything. You can use property
nodes
to get control of the cursor. Set the active cursor to cursor 0
then lock to plot, then set the cursor X position to 0. Then set allow
drag to true. The user will then be able to drag the cursor in the x
axis and the cursor will follow the plot values in the y axis. So, you
must use the property nodes of the graph to control the cursor.
0 Kudos
Message 3 of 3
(3,406 Views)