LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY point control

I'm controlling a 2 axis actuator system using LabVIEW. I'd like to use a front panel control to set both axis values with one mouse movement - like a 2D slider control. The user would click on a object and drag it with the mouse and the control terminal would send out X and Y values. Is there any such thing?
0 Kudos
Message 1 of 3
(2,828 Views)
I would use the cursor of an XY graph as the control.
you need to programmatically read the cursor xy position.

In LV 6.1 and higher you can alternatively detect changes to 'Mouse down'
and 'Mouse Move' events of a graph indicator, but you would need to update
somethinf in the graph to act as a 2D-slider.

I think the cursor method is easiest.


-Franz

"hans17" schrieb im Newsbeitrag
news:50650000000800000093970000-1042324653000@exchange.ni.com...
> I'm controlling a 2 axis actuator system using LabVIEW. I'd like to
> use a front panel control to set both axis values with one mouse
> movement - like a 2D slider control. The user would click on a object
> and drag it with the mouse and the control terminal would send out X
> and Y values. Is ther
e any such thing?
0 Kudos
Message 2 of 3
(2,828 Views)
The XY graph cursor method looks good. I have one little problem though. I want fixed X and Y scales such that the movements of the cursor are limited to between +5 and -5 on both axis. What happens now is that when the cursor is moved to the edge of the graph,the graph scrolls outside of my +/-5 boundaries. I played with all the XY graph properties I could find, and couldn't limit the cursor's values to my range. Is there a way? My XY Graph tryout VI is attached.
0 Kudos
Message 3 of 3
(2,828 Views)