APX-3302 User's Manual (OM110000019A)
-67 -
Figure6-25: Capture timing
/////////////////////////////////////////////////////////////////////////////////
// Start capturing //
/////////////////////////////////////////////////////////////////////////////////
// Register event (For description)
AcapSetEvent(hDev_Master[ch_1], ch_1, ACL_INT_GRABEND, TRUE);
AcapSetEvent(hDev_Master[ch_2], ch_2, ACL_INT_GRABEND, TRUE);
AcapSetEvent(hDev_Slave[ch_1], ch_1, ACL_INT_GRABEND, TRUE);
AcapSetEvent(hDev_Slave[ch_2], ch_2, ACL_INT_GRABEND, TRUE);
// Master ch1 must start capturing in last.
AcapGrabStart(hDev_Slave[ch_2], ch_2, 5);
//Slave ch2
AcapGrabStart(hDev_Slave[ch_1], ch_1, 5);
//Slave ch1
AcapGrabStart(hDev_Master[ch_2], ch_2, 5);
//Master ch2
// Master board starts capturing after 100[ms] (For description)
Sleep(100);
AcapGrabStart(hDev_Master [ch_1], ch_1, 5);
//Master ch1
// Waiting for GRABEND event (5 frame input end)
if
(ACL_RTN_ERROR == AcapWaitEvent(hDev_Master[ch_1], ch_1, ACL_INT_GRABEND, 10000))
{;
TimeOut etc.
}
if
(ACL_RTN_ERROR == AcapWaitEvent(hDev_Master[ch_2], ch_2, ACL_INT_GRABEND, 10000))
{;
TimeOut etc.
}
if
(ACL_RTN_ERROR == AcapWaitEvent(hDev_Slave[ch_1], ch_1, ACL_INT_GRABEND, 10000))
{;
TimeOut etc.
}
if
(ACL_RTN_ERROR == AcapWaitEvent(hDev_Slave[ch_2], ch_2, ACL_INT_GRABEND, 10000))
{;
TimeOut etc.
}
The timing chart to start capturing by the above setting is as follows.
Capture
(
Master board
)
AcapGrabStart
AcapGrabStart
0[ms]
100[ms]
200[ms]
300[ms]
400[ms]
500[ms]
AcapGrabStop
AcapGrabStop
It stops at 5 shots automatically,
since it is a 5 frame input.
Capture
(
Slave board
)
CC output
(
Master board
)
CC output
(
Slave board
)
Summary of Contents for APX-3302
Page 1: ...APX 3302 User s Manual ...