Operator`s manual

Table Of Contents
Signametrics 76
DMMDutyCycleStr
SMU2060 SMU2064
Description Return percent duty cycle of an AC signal in string format.
#include "SMU2060.h"
int DMMDutyCycleStr(int nDmm, LPSTR lpszReading)
Remarks This function is the string version of DMMReadDutyCycle. The measurement result is
stored at the location pointed to by lpszReading. See DMMReadDutyCycle for more
details.
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpszReading
LPSTR Points to a buffer (at least 64 characters long) to hold the
result.
Return Value The return value is one of the following constants.
Value
Meaning
Negative Value
Error code
Positive Value < 100
The length of the returned string
Postive Value 100
Warning code
Example char cBuf[64]; int status = DMMDutyCycleStr(0, cBuf);
DMMErrString
SMU2060 SMU2064
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