Signametrics
50
Example
double reading; int I;
for(i=0; i<40;i++) SCANSetScanList(0, i-1, i); // Set
locations // 0 to 39 to channels 1 through 40
SCANAutoScan(0,40); // execute a 40 point auto scan
sequence of // Ch1, Ch2, Ch3…Ch40
SCANSetStepTime
H/W access Command
;
Polled Command
Description
Set auto scan step time
#include “SM4040.H”
int
SCANSetStepTime
(
int
iScan,
double
dStep
)
Remarks
This function sets the scanner’s Step time value. The Step time effects the various auto-
scanning operations. It is the dwell time at each channel in a scan sequence. For proper
operation the Step time must be greater than the actuation time. The default value is
100mS. The allowed range is from 1ms to 850ms. The resolution is 0.25ms.
Parameter
Type/Description
iScan
int
Identifies the Scanner being addressed.
dStep
double
Sets the step time. Allowed value is between 1ms to 850ms.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Function succeeded.
Negative Value
Error code
Example
status = SCANSetStepTime(0, 0.200); // Set step time
// to 200ms
SCANSetTriggerOut
H/W access Command
;
Polled Command
Description
Set the Scanner Trigger output signal level.
#include “SM4040.H”
#include “ScanUser.H”
int
SCANSetTriggerOut
(
int
iScan,
int
iLevel
)
Remarks
This function forces the Scanner’s trigger output line to a high or a low level. With
iLevel
set to one (1), the level is set high. Zero (0) forces it low. This setting is independent of
the trigger enable line, and may be used as a control line.
Parameter
Type/Description
iScan
int
Identifies the Scanner being addressed.
Summary of Contents for SM4020
Page 61: ...Signametrics 60...