ICP DAS USA PCI-1202L User Manual page 67

Multi-function boards
Table of Contents

Advertisement

PCI-1202/1602/180x Series Card
Multi-Function Boards
The demo program to start MagicScan operation is given as follows:
P180x_StartScan(...) is designed for PCI-1800/1802 series
P1202_StartScan(...) is designed for PEX-1202/PCI-1202 series
P1602_StartScan(...) is designed for PCI-1602 series
WORD P180X_StartScan(WORD wSampleRate, WORD wNum)
{
WORD wVal;
WORD wRetVal;
wMagicNum=wNum;
disable_timer0();
wRetVal=pic_control(0xD400);
if (wRetVal!=0) return(wVal);
outport(wAddrCtrl,0x2000);
outport(wAddrCtrl,0xA000);
enable_timer0(wSampleRate);
magic_scan();
return(NoError);
}
/* Disable pacer timer first */
/* start MagicScan controller */
/* 11?1 01?? ???? ???? cmd_101=start scan */
/* Clear FIFO to clear all data */
/* Bit15=0=clear FIFO, Bit13=1=not PIC cmd */
/* Bit15=1=no reset FIFO, BIT13=1=not PIC cmd */
/* Enable pacer timer, sampling rate=8 M/dwSample */
/* Call MagicScan subroutine(DOS) or thread(Windows) */
User Manual/ Ver. 4.8/ Mar. 2015/ PMH-0014-48/ Page: 67

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents