Signametrics
90
Description
Return the next double floating-point period reading from the DMM.
#include "sm204032.h"
int DMMReadPeriod
(
int
nDmm, double
FAR *lpdResult
)
Rem rks
This is a
Secondary
function and the DMM must be in ACV measurement function, and
t as a
t
. See
quencyStr()
for more details.
a
a valid range must be set It makes a single period measurement, and stores the resul
double-precision floating-point number in the location pointed to by
lpdResul
DMMFre
Parameter Type/Description
nDmm
g with zero.
lpdResul
R *
Points to the location which holds the period.
ants.
Value
int
Identifies the DMM. DMMs are numbered startin
t
double FA
Return Value
The return value is one of the following const
Meaning
DMM_OKAY
lly completed.
ue
DMM_C
Example
double d;
int status;
= DM
iod(0, &d);
SMX2040
;
SMX2042
;
SMX2044
;
Description
Return the next reading from the DMM formatted for printing.
#include "sm204032.h"
int
DMMReadStr
(
int
nDmm, LPSTR
lpszReading
)
Remarks
This function is the string version of
DMMRead()
. It reads the next
Primary
measurement result, performs all scaling and conversion required, and returns the result
as a string formatted for printing. The print format is determined by the range and
function. See
DMMRead()
for more details.
Parameter
Operation successfu
Negative Val
Error code
NT_RNG
Period measurement hardware is over or under range.
status
MReadPer
DMMReadStr
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
lpszReading
LPSTR
Points to a buffer (at least 16 characters long) to hold the
converted result. The return value will consist of a leading sign, a
floating-point value in exponential notation, and a units specifier.
Return Value
The return value is one of the following constants, or the string length is OK.
Value Meaning
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com