•
The sample program for
single board
is given as follows:
wRetVal=P180X_Card0_StartScan(……);
// 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
}
if (stop flag is ON)
// for example, the user press STOP key here
{
Card0_StopScan(…);
return
OK
}
}
•
The sample program 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(;;)
PCI-1202/1602/1800/1802 Hardware User’s Manual
(
Ver.4.2, Dec/2009, PMH-014-42)---- 88