Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Source code is part of the publicly++

 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?
0 Kudos
Message 1 of 1
(2,917 Views)