Operator`s manual
81 Signametrics
SM2040 ; SM2042 ; SM2044 ;
Description eturn the next floating-point reading from the DMM.
include "sm204032.h"
int DMMRead(int nDmm, double *lpdResult)
Remarks
caled
Parame
DMMRead
R
#
DMMRead reads the next result from 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 s
value which is normilized to the selected range. That is . That is, it returns 300 for
300mV input in the 330 mV range, and 100 for 100 kΩ input in the 330k Ω range. Use
the DMMReadNorm() function for base units read function.
ter
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
DMM_E_RANGE
DMM over range error occurred.
Example
reading from the DMM internal buffer.
double d;
int status;
status = DMMRead(0, &d);
DMMReadBuffer
SM2040 ; SM2042 ; SM2044 ;
Description Return the next double floating-point
#include "sm204032.h"
int DMMReadBuffer(int nDmm, double *lpdResult)