PCI-1202/1602/180x Series Card
Multi-Function Boards
User Manual/ Ver. 4.8/ Mar. 2015/ PMH-0014-48/ Page: 108
The sample code for
multi-boards
is given as follows:
wRetVal=P180X_Card0_StartScan(……);
// setup continuous capture function
// this function will create thread
if (wRet != NoError) { Show error message & return }
wRetVal=P180X_Card1_StartScan(……);
// setup continuous capture function
// this function will create thread
if (wRet != NoError) { Show error message & return }
wRetVal=P180X_Card?_SartScan(……);
// setup continuous capture function
// this function will create thread
if (wRet != NoError) { Show error message & return }
// now the thread is active and the continuous capture function is going now
for(;;)
{
wRetVal=P180X_Card0_ReadStatus(….);
if(wRetVal != 0)
{
show these A/D data or
save these A/D data or
analyze these A/D data
}
wRetVal=P180X_Card1_ReadStatus(….);
if (wRetVal != 0)
{
show these A/D data or
save these A/D data or
analyze these A/D data
}
wRetVal=P180X_Card?_ReadStatus(….);
if (wRetVal != 0)
{
show these A/D data or
save these A/D data or
analyze these A/D data
}
if (stop flag is ON)
// for example, the user press STOP key here
{
Card0_StopScan(…);
return OK
}
}
Refer to DEMO13.C & DEMO14.C for details.