Operator`s manual

127 Signametrics
the on-board microcontroller’s resources and must be turned off when not in use. U
DMMDisableTrimDAC to turn it off. With the Trim DAC the effective resolution
composite DAC is increased to 16 bits. See DMMSetDCVSource and
DMMSetACVSource for more details.
ter
se
of the
Parame
Type/Description
nDmm
iValue
Return Value
Value
int Identifies the DMM. DMMs are numbered starting with zero.
int Amplitude can be set from 0 to 100, corresponding to 0% to
100% Trim DAC level.
Integer error code.
Meaning
DMM_OKAY
Operation successfully completed.
Negative Value
Error code
Example
DMMSetDCVSource(0, 5.0); // Set source to 5V
MMSetTrimD
DMMSta lizer
SM2060 SM
Description Clear the totaliz
#include "SM206032.h"
MStart
Remarks is func must be in ACV measurement function, and a valid range
electe on clears the Totalized count, sets the edge sense, and starts
uring the accumulation period. However,
hold DAC sets the
ommand (except
ust be turned off
ing DMMStopTotalizer. After the Totalizer is stopped, the accumulated result can be
ad using DMMReadTotalizer. A normal procedure would be to set the DMM to the
CV function, select voltage range, set the Threshold DAC, start the totalizer, wait for
the time required, stop and read the total. The total number of events is limited to
1,000,000,000. The SM2064S product allows up to 90 kHz input, but reduces the
resolution of the count.
D AC(0, 50); // add about 2.5mV to output
rtTota
2064 ;
ed value and start the totalizer.
#include "DMMUser.h"
int DM Totalizer(int nDmm, int Edge)
To use th
must be s
tion the DMM
d. This functi
the Totalizer. The totalized value can be read d
it could affect the count by the interruption. If no reads are performed during
accumulation, the input rate can be as high as 45 kHz. If reads are performed during the
accumulation period, this rate could be as low as 20 kHz. The Thres
r c
levels at which signals are counted. During accumulation, no othe
DMMReadTotalizer) should be used. When done, this function m
us
re
A
Parameter Type/Description
nDmm
Edge
negative edges, if LEADING (1) count positive edges
int Identifies the DMM. DMMs are numbered starting with zero.
int Identifies the edge of the counter. If TRAILING (0) count