Operator`s manual
53 Signametrics
SCANStep
H/W access Command Polled Command
Description Step to the next channel in the Scan List.
#include “SMX4032.H”
int SCANStep(int iScan)
Remarks Switch to the next point in the scan table. This is software triggered switching function. It
is similar to SCANTriggerScan except the scanner steps to the next channel in the scan
list due to a command rather than by hardware event. The number of points is the actual
number of times SCANStep is issued following SCANSetupStep command.
SCANSetupStep sets the hardware ScanList pointer to point to the first entry of the
ScanList table. On SCANStep command, the Scanner selects the channel(s) pointed to
by the hardware pointer, then increments the ScanList pointer. Parameters effecting the
operation include the set configuration, the Actuation time, and trigger output polarity
and enable state. The ScanList must be pre-loaded prior to issuing this command. Make
sure the number of SCANStep commands being issued does not exceed the loaded
contents of the scan list. Up to 192 points can be selected in this operation mode.
Parameter
Type/Description
iScan
int Identifies the Scanner being addressed.
Return Value The return value is one of the following constants.
Value
Meaning
SCAN_OKAY
Operation successfully completed.
Negative Value
Error code
Example status = SCANStepCmd(0); //Step to the next point in the
//ScanList table
SCANStepCmd
H/W access Command Polled Command
Description Step to the next channel in the Scan List.
#include “SMX4032.H”
int SCANStepCmd(int iScan)
Remarks This is the polled version of the SCANStep function. It sends the command to the
Scanner but unlike SCANStep, it does not wait for completion of the selection operation.
SCANReady must be used in order to verify the selected channel is closed and the
scanner is ready for a new command. It is necessary for SCANReady to return TRUE
once for proper operation. For instance, if the actuation time is set to 10ms, and a wait of
100ms it taken following the execution of the SCANSelectChannelCmd, it should not
be assumed the scanner is ready. SCANReady must be used and return TRUE to
proceed. SCANReady not only checks for readiness, but it also clears some registers in
preparations for the next command.