Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the imaqSetEventCallback function ?

I install the callback like the following:
imaqSetEventCallback (WindowEventCallback, TRUE);

But I don not know how to make the prototype of the WindowEventCallback, who can help me?
Dongsheng Zhao
North China Electronic Power Univ.
zds_hd@yahoo.com.cn
0 Kudos
Message 1 of 2
(3,148 Views)
As the CVI Function Reference Help mentions, the callback should have the following prototype:

void IMAQ_CALLBACK MyCallback(WindowEventType, int windowNumber, Tool tool, Rect rect);

Greg Stoll
IMAQ R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 2 of 2
(3,144 Views)