![Signametrics SM2060 Скачать руководство пользователя страница 71](http://html1.mh-extra.com/html/signametrics/sm2060/sm2060_operators-manual_1268482071.webp)
71
Signametrics
Parameter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
Return Value
Integer error code
Value
Meaning
DMM_OKAY
Operation successfully completed.
Negative Value
Error code
DMMDutyCycleStr
SM2064
;
scription
Return percent duty cycle of an AC signal in string format.
de "SM206032.h"
int
DMMDutyCycleStr
(
int
nDmm, LPSTR
lpszReading
)
Remarks
his function is the string version of
DMMReadDutyCycle
. The measurement result is
MReadDutyCycle
for more
details.
Parame
SM2060
De
#inclu
T
stored at the location pointed to by
lpszReading
. See
DM
ter
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
ding
result.
Return Value
The return valu
llowing constants.
Value
lpszRea
LPSTR
Points to a buffer (at least 64 characters long) to hold the
e is one of the fo
Meaning
DMM_OKAY
Valid return.
Negative Value
Error code
xample
char cBuf[64]; int status = DMMDutyCycleStr(0, cBuf);
DMMErrString
SM2060
;
SM2064
;
Description
Return the string describing the warning or error code.
#include "SM206032.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.
E