![Signametrics Corporation SMU2055 Скачать руководство пользователя страница 27](http://html1.mh-extra.com/html/signametrics-corporation/smu2055/smu2055_operators-manual_1268487027.webp)
27
Signametrics
Negative Value
Error code
Example
int status = DMMCloseUSB(0);
DMMDelay
Description
Wait for a given time.
#include "SMU2060.H"
int DMMDelay
(
double
dTime
)
Remarks
Delay
of
dTime
seconds.
dTime
must be a positive double 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
DMM_OKAY
Operation successfully terminated
Negative Value
Error code
Example
DMMDelay(1.2); /* wait for 1.2 sec */
DMMErrString
Description
Return the string describing the warning or error code.
#include "SMU2060.H"
int DMMErrString
(
int
iErrorCode,
LPSTR
lpszError,
int
iBuffLength
)
Remarks
This function returns a string containing the error or warning description which
corresponds to the
iErrorCode.
The string is placed at
lpszError
. Error codes are
negative numbers, while warning codes are positive numbers.
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 64 characters long) to hold the
error/warning string.
Return Value
The return value is the length of the error string or one of the following constants.
Value
Meaning