Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get pixel positions with IMAQ Vision for CVI

Hi,
I am trying to connect a callback to an IMAQ window that contains an image that I generated. The purpose simply to get the coordinates of the mouse for every left_click event on that IMAQ window.
How can I do this by using the function
imaqGetPixelAddress(); and using a callback associated to the IMAQ window.
Is there an example code to help doing this in LW-CVI?

Many thanks,

JHH
0 Kudos
Message 1 of 2
(2,754 Views)
Hello,

You can do this by calling the imaqGetLastEvent() function with IMAQ_CLICK_EVENT as the tool parameter.
Hope this helps!

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,754 Views)