Operator`s manual
59 Signametrics
Error code
(0, cBuf);
DMMErrString
SM2042 ;
Description
#include "sm204032.h"
int DMMErrString(int iErrorCode, LPSTR lpszError, int iBuffLength)
Remarks This function returns a string containing the error description which corresponds to the
iErrorCode. Th
meter
Negative Value
Example char cBuf[64]; int status = DMMDutyCycleStr
SM2040 ; SM2044 ;
Return the string describing the error code.
e error string is placed at lpszError.
Para 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
Return Value value is th he error string or one of the following constants.
Value
string.
The return e length of t
Meaning
Negative Value
Exa ;
DMMErrString( -3, cBuf, 48);
DMMFrequencyStr
SM2040 SM2042 ;
n
clude "sm2
int DMMFreq
Remarks ion m tted
for printing. Th xed to six digits plus units, e.g., 05.001 Hz. If the
DMM is in autorange, be certain to take an amplitude reading before using this
command. It may take several calls to DMMFrequencyStr() to get the measured
frequency, because the DMM frequency counter uses a frequency ranging scheme which
ing function is received. If the
previously measured frequency was 1 Hz and the frequency being measured is 300 kHz
(or vise versa), it might take as many as six calls to DMMFrequencyStr() or any of the
other frequency measurement functions, to read the correct frequency. This function is a
Secondary function which requires the DMM to be in either VAC or IAC function and
at the appropriate range.
Error code
mple char cBuf[64]
int length =
SM2044 ;
Descriptio Return the next DMM frequency reading, formatted for printing.
#in
04032.h"
uencyStr(int nDmm, LPSTR lpszReading)
This funct akes frequency measurement and returns the result as a string forma
e print format is fi
gets activated only when a frequency or period read