57
Signametrics
Remarks
This function sets the scanner’s trigger output line state and polarity. Default is
DISABLED and POSITIVE. If
iState
is set to ENABLED, the trigger output is enabled,
which reflects in its activity during channel selection and during scanning operations.
With
iEdge
set to POSITIVE, the trigger output polarity will be positive, which means
that a positive edge on the trigger output line indicates a channel selection ready. 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 output line. It may be set
to ENABLED or DISABLED.
iEdge
int
Indicates the active edge for the trigger output line. It 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
SCANTriggerOutState(0, ENABLED, POSITIVE) //set Trig out
SCANTrigScan
H/W access Command
;
Polled Command
Description
Set Scanner for trigger driven step scanning.
#include “SM4040.H”
int SCANTrigScan(int
iScan,
int
iPoints
)
Remarks
Setup for a hardware-triggered step scanning operation.
iPoints
is the number of points in
the scan. The ScanList must be pre-loaded prior to issuing of this command. After
receiving this command, the Scanner enters a wait state whereby each selected edge on
the trigger input line, selects the next channel from the scan list table. It begins with
location 0 of the ScanList and scans a total of
iPoints
. Zero value in scan list opens all
channels, which is used for involving multiple scanners in the scanning process. This
way a single scan can include points from several scanners. Up to 192 point may be set
per scan. This process is completed when
iPoints
have been canned (
iPoints
trigger
edges received). This is a polled operation. It is issued, and then monitored for
completion using the
SCANReady
. It requires
SCANReady
to return TRUE as
indication of completion. Do not issue new command until
SCANReady
returns TRUE.
An exception is the
SCANAbort,
which terminates this operation. See
SCANStep
and
SCANSetupStep
for additional information. Parameters effecting the operation include
the set configuration, the Actuation time, and trigger input polarity and enable state.
Parameter
Type/Description
iScan
int
Identifies the Scanner being addressed.
iPoints
int
The total number of points in the scan
Summary of Contents for SM4020
Page 61: ...Signametrics 60...