Signametrics
36
Remarks
Delay
of
dTime
seconds.
dTime
must be a positive double floating point number between
0.0 and 100.0 seconds.
Parameter Type/Description
dTime
double
Delay time in seconds.
Return Value
The return value is one of the following constants.
Value Meaning
SCAN_OKAY
Operation successfully terminated
Negative Value
Error code
Example
SCANDelay(1.2); /* wait for 1.2 Sec */
SCANErrString
H/W access Command
Polled Command
Description
Return the string describing the error.
#include “SMX4032.H”
int SCANErrString
(
int
iErrorCode, LPSTR
lpszError, int iBuffLength
)
Remarks
This function returns a string containing the error description, which corresponds to the
integer error, code
iErrorCode.
The error string is placed at
lpszError
.
Parameter Type/Description
iErrorCode
int
Error code.
iBuffLength
int
The maximum available length of the string buffer
lpszError
LPSTR
Points to a buffer (at least 40 characters long) to hold the
error string.
Return Value
The return value is the length of the error string or one of the following constants.
Value Meaning
Positive Value
Length of returned error string.
Negative Value
Error code
Example
char
cBuf[48];
int length = SCANErrString( -3, cBuf, 48);