Specifications
59 Signametrics
lue
Example char cBuf[17]
DMMErrString
MX2042
Description Return the string the error code.
e "sm20
rSt iBuffLength)
Remarks tion re g containing the error description which corresponds to the
de. The error string is placed at lpszError.
Negative Va
Error code
; int status = DMMDutyCycleStr(0, cBuf);
SMX2040 ; S ; SMX2044 ;
describing
#includ
4032.h"
int DMMEr ring(int iErrorCode, LPSTR lpszError, int
This func
iErrorCo
turns a strin
Parameter
Type/Description
ode
int Error code.
iErrorC
iBuffLength
int The maximum available length of the string buffer
lpszError
LPSTR Points to a buffer (at least 16 characters long) to hold the
error string.
Return Value The return value is the length of the error string or one of the following constants.
Value
Meaning
Negative Value
Error code
Example char cBuf[48];
int length = DMMErrString( -3, cBuf, 48);
DMMFrequencyStr
SMX2040 SMX2042 ; SMX2044 ;
Description Return the next DMM frequency reading, formatted for printing.
#include "sm204032.h"
int DMMFrequencyStr(int nDmm, LPSTR lpszReading)
Remarks This function makes frequency measurement and returns the result as a string formatted
for printing. The print format is fixed 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
gets activated only when a frequency or period reading 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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com