53
Signametrics
SCANTerminate
H/W access Command
;
Polled Command
Description
Terminate Scanner’s operation, and removes it from PCI configuration.
#include “SM4040.H”
int SCANTerminate
(
int
iScan
)
Remarks
This function opens all relays of the selected Scanner, then removes it from the PCI
structure. To use this Scanner again, it is necessary to either, exit the thread, or
reinitialize it. It is not necessary to use this function since exiting the thread will
automatically terminate the scanner. Following the termination operation, the scanner is
not accessible.
Parameter
Type/Description
iScan
int
Identifies the Scanner being addressed.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Operation successfully completed.
Negative Value
Error code
Example
status = SCANTerminate(0);
// Terminate scanner #0
SCANTestChanIntegrity
H/W access Command
;
Polled Command
Description
Test a channel relay for integrity.
#include “SM4040.H”
int SCANTestChanIntegrity(int
iSca,
int
iChan
)
Remarks
This function tests a single channel relay. The procedure closes a single relay, waits for
tActuation, and then checks that both contacts are closed. Next it opens the relay, waits
for 1/2 of tActuation, and then checks if the relay is open. A bounce following contact
closure and opening is not verified. This test operation is fast, but it is very thorough. Use
the
SCANTestChannelRelay
and
SCANTestConfigRelay
operations for a more
comprehensive test. The test connector must be in place to perform this test. Following
the completion of this test, the scanner is left in the
Disabled
configuration.
Parameter
Type/Description
iScan
int
Identifies the Scanner being addressed.
Summary of Contents for SM4020
Page 61: ...Signametrics 60...