ICP DAS USA PCI-1202L User Manual page 63

Multi-function boards
Table of Contents

Advertisement

PCI-1202/1602/180x Series Card
Multi-Function Boards
6.5.1.3 Bit12-Bit10: Command Sets of MagicScan Controller
The command sets of MagicScan controller are given as follows:
Command
Reset
Set channel/gain
Add to scan queue
Start MagicScan
Stop MagicScan
Get ODM number
The demo program to reset the MagicScan controller is given as follows:
wVal=pic_control(0xC000);
The demo program to clear MagicScan queue is given as follows:
P180x_ClearScan(...) is designed for PCI-1800/1802 series
P1202_ClearScan(...) is designed for PEX-1202/PCI-1202 series
P1602_ClearScan(...) is designed for PCI-1602 series
WORD P180X_ClearScan(void)
{
WORD i;
for(i=0; i<32; i++) wMagicScanSave[i]=0;
disable_timer0();
disable_timer1();
return(pic_control(0xC000));
}
[B12, B11, B10]
Reset the MagicScan controller.
[0 0 0]
The software driver must send this command once after
power-on.
Set the channel/gain value of the fixed-channel mode. It will
[0 0 1]
not affect the scan queue.
Add the channel/gain code to the scan queue.
[1 0 0]
(At most 48 scan-channels can be stored in the MagicScan
controller.)
[1 0 1]
Start the MagicScan controller
[0 1 0]
Stop the MagicScan controller.
Get the ODM number of the PEX-1202 and
[1 1 0]
PCI-1202/1602/1800/1802 series card.
/* 11?0 00?? ???? ???? cmd_000=reset */
/* 11?0 00?? ???? ???? cmd_000=reset */
User Manual/ Ver. 4.8/ Mar. 2015/ PMH-0014-48/ Page: 63
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents