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

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

Advertisement

The demo program of post-trigger is given as follows:
wRetVal=P180X_ClearScan();
wRetVal += P180X_AddToScan(0,0,1,0,0,0);
wRetVal += P180X_SaveScan(0,wV0);
wRetVal += P180X_AddToScan(2,0,1,0,0,0);
wRetVal += P180X_SaveScan(1,wV2);
wRetVal += P180X_StartScanPostTrg(wSampleRateDiv,DATALENGTH,nPriority);
if (wRetVal==0) sprintf(cShow,"2. External Post-Trigger Setup OK");
else sprintf(cShow,"2. External Post-Trigger Setup Error");
TextOut(hdc,x*dx,(y+iLine)*dy,cShow,strlen(cShow)); iLine++;
for (; ;)
{
P180X_ReadScanStatus(&wStatus,&dwLowAlarm,&dwHighAlarm);
if (wStatus>1) break;
Sleep(10);
}
sprintf(cShow,"3. ScanStatus=%x",wStatus);
TextOut(hdc,x*dx,(y+iLine)*dy,cShow,strlen(cShow)); iLine++;
wRetVal=P180X_StopMagicScan();
if (wRetVal!=NoError)
{
sprintf(cShow,"4. StopMagicScan Error");
TextOut(hdc,x*dx,(y+iLine)*dy,cShow,strlen(cShow)); iLine++;
for (dwI=0; dwI<100; dwI++) Beep(10,10);
}
SHOW_WAVE(hwnd,LINE1,wV0,1);
SHOW_WAVE(hwnd,LINE2,wV2,1);
Refer to DEMO23.C for completely source program
PCI-1202/1602/1800/1802 Hardware User's Manual
//
^ : This is a ordinal number in
// Scan Queue not a channel number.
// CH:0 to scan
// CH:2 to scan
// Notice: 1 not 2
(Ver. 4.2, Dec/2009, PMH-014-42)---- 51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents