Operator`s manual

93 Signametrics
Description Tests the DMM for ready status, and returns the next floating-point reading.
#include "SM206032.h"
int DMMPolledRead(int nDmm, double FAR *lpdResult)
Remarks DMMPolledRead polls the DMM for readiness. If the DMM is not ready it will return
ading it will return TRUE, and the reading
pdResult. See DMMPolledReadCmd for
more details. Do not use DMMReady to check for readiness since it will cause
Parameter
FALSE. If the DMM is ready with a new re
will be placed at the location pointed to by l
communication failure.
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
lpdResult
double FAR * Points to the location to hold the next reading.
eturn Value The return value is one of the following constants.
Value
R
Meaning
FALSE
DMM is not ready
TRUE
Negative Value
Error code
Example
double read;
if(DMMPolle
DMMPolledReadCmd
2064 ;
Description Send DMM Pol ommand.
e "SM2
int Polle (int nDmm)
Polled read process, this function will trigger the
us ,
ch as Capacitance,
ation. Measurement
should be set to 160ms or lower. If FALSE is returned, the DMM is busy
a prior polled read. A DMM_OKAY indicates the DMM accepted the read
mmand and entered the busy state. The DMM remains busy until it is ready with the
ime and
PolledReadStr to test
ent. Do not use DMMReady to check for readiness
ication failure.
DMM is ready, and reading is placed at lpdResult
dRead(0, &d)) fprintf(ā€œ%9.4f\nā€,d); // Show
SM2060 ; SM
led Read c
#includ 06032.h"
DMM dReadCmd
Remarks If the DMM is not busy with a prior
comm
DMM to execute a single read and. The DMM must be set to a specific range and
one of the following functions to e the polled read command: VDC, VAC, IDC, IAC
2-wire, 4-wire, 6-wire, or RTD function. Composite functions su
Inductance, Peak-to-Peak etc. are not capable of polled read oper
Aperture
processing
co
next reading. This function is useful where it is necessary to conserve CPU t
make the DMM a polled device. Use DMMPolledRead or DMM
for readiness and read measurem
since it will cause commun