3.7.4 P1602_AddToScan
z
Description :
This function will add one channel to the
MagicScan circular queue
.
This function will refer to the current active OME-PCI-1602 board. Use the
P1602_ActiveBoard(….) function to select the active board.
z
Syntax :
word P1602_AddToScan(WORD wAdChannel, WORD wConfig, WORD
wAverage, WORD wLowAlarm, WORD wHighAlarm, WORD wAlarmType);
z
Input Parameter :
wAdChannel : A/D channel number
wConfig : the configuration code
Refer to "
Section 3.1 Configuration Table
"
wAverage : the digital average filter factor
wLowAlarm : 16 bit low alarm data
wHighAlarm : 16 bit high alarm data
wAlarmType : 0=no alarm, 1=high alarm, 2=low alarm, 3=in-alarm, 4=out-alarm
z
Return Value
:
NoError : Ok
ExceedBoardNumber: invalid board number
FindBoardError : cannot find the OME-PCI-1602 board
AdChannelError : invalid A/D channel
AlarmTypeError : only 0/1/2/3/4 are valid
AdControllerError : MagicScan controller hardware handshake error
z
Demo Program : DEMO11.C
46
Содержание OME-PCI-1602
Страница 37: ... Demo Program DEMO9 C 37 ...