Signametrics
54
iChan
int
Identifies the Channel relay to be tested.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Operation successfully completed.
Negative Value
Error code
Example
SCANTestChanIntegrity(0,1); // test Chan1 relay
SCANTestChannelRelay
H/W access Command
;
Polled Command
Description
Test a channel relay.
#include “SMX4032.H”
#include “ScanUser.H”
int
SCANTestChannelRelay(int
iScan
, int
iChan,
doulbe
* lpdBounce
)
Remarks
This function tests a single channel relay. Its diagnostics include excessive bounce and
open and short failures. If no failure, the Actuation time of the relay, including bounce
time,
lpdBounc
), is returned. This value maybe used to fine-tune the Scanner for
maximum switching performance by setting the Actuation time using
SCANSetActuationTime
. The Channel parameter can be a value between 1 and 40. The
SM40L test connector is required to execute this procedure. Following the completion of
this test, the Scanner is left in the
Disabled
configuration.
Parameter
Type/Description
iScan
int
Identifies the Scanner being addressed.
lpdBounce
Doulbe *
Pointer where the bounce time value is to be saved.
iChan
int
Identifies the Channel relay to be tested (1 to 40)
Return Value
Integer error code.
Value
Meaning
SCAN_OKAY
Operation successfully completed.
Negative Value
Error code
Example
SCANTestChannelRelay(0, 4); // test Chan4
SCANTestConfigRelay
H/W access Command
;
Polled Command
Содержание SM4020
Страница 61: ...Signametrics 60...