Signametrics
52
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 “SM4040.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.
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
SCANStepCmd(0);
DMMSetRange(0,3V) //Set DMM to appropriate range
DMMRead(0, &Val); //Flush a reading or two
While( ! SCANReady(0)); // Wait for Scanner to be ready
DMMRead(0, &reading); // Read input
Summary of Contents for SM4020
Page 61: ...Signametrics 60...