User`s guide

Implementing the Acquisition Thread Function
5-19
When it receives the appropriate message, the acquisition thread function enters
the frame acquisition loop. The following figure illustrates this interaction between
your adaptor functions and the acquisition thread. For information about the frame
acquisition loop, see “Frame Acquisition Loop” on page 5-20.
Start acquisition
thread.
Start message
received.
Acquisition
thread
Enter thread
message loop,
waiting for
start message
openDevice()
Send message to
thread to begin
capturing frames.
startCapture()
Send message to
terminate frame
acquisition loop.
closeDevice()
Enter frame
acquisition loop,
acquiring frames
from device.
Package image
frames and send
them to the engine.
Interaction of Adaptor Functions and Acquisition Thread