Signametrics
54
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
SCANStepCmd(0);
DMMSetRange(0,3V) //Set DMM to appropriate range
DMMRead(0, &Val); //Flush a reading or two
While( ! SCANReady(0)); // Wait for Scanner to be ready
DMMRead(0, &reading); // Read input
SCANTerminate
H/W access Command
Polled Command
Description
Terminate Scanner’s operation, and removes it from PCI configuration.
#include “SMX4032.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