APX-3302 User's Manual (OM110000019A)
-62 -
■
The setting example for software
The sample code to capture image with 4ch synchronization by SYNCLT function is as follows.
<Sample code>
/////////////////////////////////////////////////////////////////////////////////////
// Open and initialization //
/////////////////////////////////////////////////////////////////////////////////////
// The sample code capture image with 4ch synchronization of two APX-3302.
#define
MASTER_BID 0
#define
SLAVE_BID 1
// Not to use hDev_Master [0] and hDev_Slave [0]
HANDLE hDev_Master[3] = {INVALID_HANDLE_VALUE};
HANDLE hDev_Slave[3] = {INVALID_HANDLE_VALUE};
int
ch_1 = 1;
int
ch_2 = 2;
int
ch;
// Open channel 1 and 2 of the master board(BoardID=0) and slave board(BoardID=1) respectively
// Configure Output CC enable
for
(ch=ch_1; ch<=ch_2; ch++) {
// Configure channel 1 and 2.
hDev_Master[ch] = AcapOpen (
"APX-3302"
, MASTER_BID, ch);
// Master board
hDev_Slave[ch] = AcapOpen (
"APX-3302"
, SLAVE_BID, ch);
// Slave board
}
// Initialize basic settings by initial file.
AcapSelectFile(hDev_Master[ch_1], ch_1,
"camera.ini"
, 0);
AcapSelectFile(hDev_Master[ch_2], ch_2,
"camera.ini"
, 0);
AcapSelectFile(hDev_Slave[ch_1], ch_1,
"camera.ini"
, 0);
AcapSelectFile(hDev_Slave[ch_2], ch_2,
"camera.ini"
, 0);
Содержание APX-3302
Страница 1: ...APX 3302 User s Manual ...