Signametrics
32
SCANAutoScan
H/W access Command
;
Polled Command
;
Description
Initiate AutoScan operation.
#include “SM4040.H”
int SCANAutoScan
(
int
iScan,
int
iPoints
)
Remarks
Run Auto Scan procedure from the Scanner's stored ScanList. This operation is carried
out by the scanner’s on-board processor. It uses the Scan List table and timing
parameters to perform a complete scan sequence. If necessary, the scan may be
terminated by sending the
SCANAbort()
command. The Scanner scans
iPoints
of
consecutive locations from the ScanList, starting with the point stored in location 0, and
up to location 191 (max of 192 for
iPoints
). Steptime and Actuation time values must be
set prior to executing this function. The Scan List must contain channel information for
at least
iPoints
prior to using this command. Steptime must be greater than the Actuation
time. This function is not applicable for the following configurations:
Universal
and
Disabled
.
Being a polled function, following this command uses
SCANReady()
to test for
completion of the operation. No new H/W access command should be issued prior to
SCANReady()
return of
TRUE
. An exception is the
SCANAbor()
command which
terminates the current operation.. Following reception of this command, the Scanner
hardware enters a busy state. When
SCANReady()
returns
TRUE
do not use it again.
Parameter
Type/Description
iScan
int
Identifies the Scanner. Scanners are numbered starting with zero.
iPoints
int
The number of points in the scan. This number must be between 1
and 192, inclusive.
Return Value
The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Operation successfully terminated
Negative Value
Error code.
Example
i = SCANAutoScan(0,22); // Scan 22 points;
while(!SCANReady(0));
// Wait for completion of scan
Содержание SM4020
Страница 61: ...Signametrics 60...