Signametrics
108
Remarks
Executing
the
DMMRead
function triggers the DMM to perform a single measurement
and retrieve the result. The DMM, performs all scaling and conversion required, and
returns the result as a 64-bit double-precision floating-point number in the location
pointed to by
lpdResult
. It can read all the
Primary
functions (those that can be selected
using
DMMSetFunction()
and
DMMSetRange()
). Returned result is a scaled value
which is normalized to the selected range. That is . That is, it returns 200 for 200mV
input in the 240 mV range, and 100 for 100 k
input in the 240k
range. Alternatively
use the
DMMReadNorm()
function for base units read function, or
DMMReadStr()
to
return the results as formatted string of the
DMMRead()
.Very large values are indication
of over range condition.
Parameter Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
lpdResult
double *
Points to the location to hold the next reading.
Return Value
The return value is one of the following constants.
Value Meaning
DMM_OKAY
DMM initialized successfully.
Negative Value
Error code
Positive Value
Warning code, including over range.
Example
double dResults[100];
int status;
For(i=0; I < 100; i++)
DMMRead(0, &dResults[i]);// Read to a buffer
DMMReadBuffer
SMU2060
SMU2064
Description
Return the next double floating-point reading from the DMM internal buffer.
#include "SMU2060.h"
int DMMReadBuffer
(
int
nDmm,
double
*
lpdResult
)
Remarks
Read the next measurement from the DMM internal buffer, pointed to by an internal
buffer pointer, and increment the pointer. Store the measurement as a 64-bit double-
precision floating-point number in the location pointed to by
lpdResult
. Limit using this
operation to the number of samples (size) of the buffer. See
DMMArmAnalogTrigger()
functions for more information about the buffer size.
Parameter Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
lpdResult
double *
Points to the location which holds the stored measuremnt.