LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

positon in picture

Hello,

 

i need a function to get the position in a picture when i push the mouse button.

It will be a kind of touch screen.

 

Best regards

 

wolf4124

0 Kudos
Message 1 of 4
(3,441 Views)

Will GetRelativeMouseState() do what you want? Maybe in a callback of the picture/canvas control.

 

JR

0 Kudos
Message 2 of 4
(3,435 Views)

Hello wolf4124,

 

Regardless which platform you are using, it should be easy to get that position normally being delivered

by several mouse-events, the OS provides. In LabVIEW, i.e., you would use a event-structure configured

to mouse-down, and the lefthand-box would provide the XY-Data. Hope that helps.

 

Marco Brauner NIG

0 Kudos
Message 3 of 4
(3,390 Views)

Sorry, I´ve overseen being in the CVI-Forum 😉

Well, GetRelativeMouseState()should work.

 

 

Marco

0 Kudos
Message 4 of 4
(3,389 Views)