Operator`s manual
Signametrics 30
DMMGetdBStr
Description Get dB deviation from the reading at the time relative was activated.
#include "SMU2060.H"
int DMMGetdBStr(int nDmm, LPCSTR lpszDB)
Remarks This function is the same as the DMMGetdB(), with the exception that it returns a string.
See DMMGetdB() for more details.
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpszDB
LPCSTR Points to a buffer (at least 64 characters long) to hold the
result. The return value will consist of a leading sign a floating-point,
and a ‘dB’ units specifier
Return Value Integer string length if successful, or an error code..
Value
Meaning
Negative Value
Error code
Example char cBuf[64]; int strLength = DMMGetdBStr(0, cBuf);
DMMGetDevLocation
Description Get a string containing the location of the DMM in the USB structure.
#include "SMU2060.h"
int DMMGetDevLocation(int nDmm, LPCSTR lpszLoc)
Remarks This service function retrieves the location of the USB DMM specified by nDmm in the
USB bus. A zero terminated string of length 8 is returned in lpszLoc. This function must
be used prior to opening the DMM. That is, prior to initializing or opening it by
DMMInit() or DMMOpenUSB().
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpszLoc
LPCSTR Points to a buffer (at least 8 characters long) to hold the
result.
Return Value Integer string length if successful, or an error code.
Value
Meaning
Negative Value
Error code
Positive Value < 100
The length of the returned string
Postive Value ≥ 100
Warning code
Example char cBuf[8];
int i = DMMGetDevLocation(0, cBuf);
DMMGetDeviation
Description Get percent deviation from the reading at the time relative was activated.
#include "SMU2060.H"
int DMMGetDeviation(int nDmm, double *lpdDev)