Signametrics
56
iPoints
int
Indicates the number of points in the scan.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Function succeeded.
Negative Value
Error code
Example
SCANTriggerOutState(0,ENABLED, POSITIVE); //positive edge
CANTrigAutoScan(0, 20); // set off 20 point scan.
SCANTriggerInState
H/W access Command
;
Polled Command
Description
S
et trigger input state
.
#include “SM4040.H”
#include “ScanUser.H”
int
SCANTriggerInStete
(
int
iScan,
int
iState,
int
iEdge
)
Remarks
This function sets the scanner’s trigger input state and active edge. Default is
DISABLED and POSITIVE. If
iState
is set to ENABLED, the trigger input line is
enabled. If
iEdge
is set to POSITIVE, Positive Edge will activate operations. See
definitions in ScanUser.H file.
Parameter
Type/Description
iScan
int
Identifies the Scanner being addressed.
iState
int
Indicates the enabled state of the trigger input line. May be set to
ENABLED or DISABLED.
iEdge
int
Indicates the active trigger edge for the trigger input line. May be
set to POSITIVE or to NEGATIVE.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Function succeeded.
Negative Value
Error code
Example
SCANTriggerInState(0, ENABLED, POSITIVE) // set Trig-in line
SCANTriggerOutState
H/W access Command
;
Polled Command
Description
S
et trigger output state
.
#include “SM4040.H”
#include “ScanUser.H”
int
SCANTriggerOutStete
(
int
iScan,
int
iState,
int
iEdge
)
Summary of Contents for SM4020
Page 61: ...Signametrics 60...