ICP DAS USA PCI-1202 Series Hardware User Manual page 88

Hide thumbs Also See for PCI-1202 Series:
Table of Contents

Advertisement

The sample program for single board is given as follows:
wRetVal=P180X_Card0_StartScan(......);
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
}
if (stop flag is ON)
{
Card0_StopScan(...);
return OK
}
}
The sample program for multi-boards is given as follows:
wRetVal=P180X_Card0_StartScan(......);
if (wRet != NoError) { Show error message & return }
wRetVal=P180X_Card1_StartScan(......);
if (wRet != NoError) { Show error message & return }
wRetVal=P180X_Card?_SartScan(......);
if (wRet != NoError) { Show error message & return }
// now the thread is active and the continuous capture function is going now
for(;;)
PCI-1202/1602/1800/1802 Hardware User's Manual
// setup continuous capture function
// for example, the user press STOP key here
// setup continuous capture function
// this function will create thread
// setup continuous capture function
// this function will create thread
// setup continuous capture function
// this function will create thread
// this function will create thread
(Ver.4.2, Dec/2009, PMH-014-42)---- 88

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents