![Omega OME-PCI-1602 Windows Software Manual Download Page 45](http://html.mh-extra.com/html/omega/ome-pci-1602/ome-pci-1602_windows-software-manual_737469045.webp)
3.7.3 P1602_ReadScanStatus
z
Description :
This function will read the status of the MagicScan operation. This
function will refer to the current active OME-PCI-1602 board. Use the
P1602_ActiveBoard(….) to select the active board.
z
Syntax :
void P1602_ReadScanStatus(WORD *wStatus, WORD
*wLowAlarm, WORD *wHighAlarm);
z
Input Parameter :
*wStatus : address of
wStatus
which will contain the MagicScan status
*wLowAlarm : address of
wLowAlarm
which will contain the MagicScan alarm
status
*wHighAlarm : address of
wHighAlarm
which will contain the MagicScan alarm
status
z
Return Value
: void
z
Demo Program : DEMO11.C
wStatus = 0x00
Æ
MagicScan initial condition (idle state)
=
0x01
Æ
MagicScan operation started
=
0x02
Æ
MagicScan stage 1 controller timeout
=
0x04
Æ
MagicScan stage 2 controller timeout
=
0x08
Æ
MagicScan FIFO overflow
=
0x80
Æ
MagicScan function OK
wLowAlarm
Æ
32 bits corresponding to 32 channels
Æ
0 = no low alarm
Æ
1 = is low alarm
wLowAlarm=0
Æ
all channels OK, no low alarm
wLowAlarm=1
Æ
channel_0 is low alarm, others are OK
wLowAlarm=3
Æ
channel_0 and channel_1 are low alarm, others are OK
wHighAlarm
Æ
32 bits corresponding to 32 channels
Æ
0 = no high alarm
Æ
1 = is high alarm
wHighAlarm=0
Æ
all channels OK, no high alarm
wHighAlarm=1
Æ
channel_0 is high alarm, others are OK
wHighAlarm=3
Æ
channel_0 and channel_1 are high alarm, others are
OK
45
Summary of Contents for OME-PCI-1602
Page 37: ... Demo Program DEMO9 C 37 ...