49
Signametrics
multiple channel relays can be closed. With
iState
set to
OPEN
, open the
iChan
relay.
Close it if iState is set to
CLOSE
. See ScanUser.H for definitions. See also
SCANSetConfigRelay
function.
Parameter Type/Description
IScan
int
Identifies the Scanner. Numbered starting with zero.
IState
int
Closes a channel relay if equal to
CLOSE
, opens it if
OPEN
.
(
OPEN
= ‘O’ or 0X4F and
CLOSE
= ‘C’ or 0X43)
IChan
int
Channel number Range: 1 to 35 depending on selected
configuration. If
iState
=
OPEN
and
iChan
= 0, open all channel
relays.
Return Value
Integer error code.
Value Meaning
SCAN_OKAY
Operation successfully completed.
Negative Value
Error code
Example
SCANSetChannelRelay(0,OPEN,10); // Open channel 10 relay
for(I=1; I<=9; I++) // Close 1,2..,9
SCANSetChannelRelay(0, CLOSE,I);
SCANSetConfig
H/W access Command
Polled Command
Description
Set the Scanner configuration to one of the predefined modes.
#include “SMX4032.H”
#include “ScanUser.H”
int
SCANSetConfig(int
iScan, int iConfiguration)
Remarks
This function sets the Scanner to one of the available configurations. It acts on both, the
configuration relays and tree relays to set the Scanner for
TwoWire, FourWire, SixWire,
TwoGroups, FourGroups, Universal, ColdJunction or Disabled
configurations. All
configuration constants are defined in the ScanUser.H file. It consumes t-Actuation to set
the configuration.
Parameter Type/Description
iScan
int
Identifies the Scanner. Numbered starting with zero.
iConfiguration
int
Configuration to set
Return Value
Integer error code.
Value Meaning