errChk(imaq1394TriggerConfigure(m_sessionId, IMG1394_TRIG_POLAR_ACTIVEH, 2000, 1, 0));
rectangle.width = m_AcqWinWidth;
rectangle.height = m_AcqWinHeight;
//errChk(imaq1394InstallCallback( m_sessionId, IMG1394_EVENT_FRAME_DONE, (IMAQ1394_CALL_BACK_PTR)&SequenceCallback, (void*)this));
errChk(imaq1394ConfigureAcquisition (m_sessionId, TRUE, 10, rectangle));
//errChk(imaq1394SetupGrab (m_sessionId, rectangle));
errChk(imaq1394StartAcquisition (m_sessionId));
HThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) ImaqThread, (LPDWORD*)this, 0, &dwThreadId);
wait thread....
while(!stopGrab->m_bThread)
{
//wait Trigger event;;;;;;
}
Trigger event after a delay from the thread that is trying to acquire an image of the buffer 10 ...
How do I need to write code?