Signametrics
114
Parameter
Type/Description
nDmm
MM. DMMs are numbered starting with zero.
e
Return Value
Integer error co
Value
int
Identifies the D
ldAmps
double
DC current to be set. Can be 0 to 1.25 X the selected rang
de.
Meaning
DMM_OKAY
Operation successfully completed.
Negative Value
Error code
Example
DMMSetRange(0, _1uA)
// Select 1uA source range
DMMSetDCISource(0, 1.1e-6);
// Set source to 1.1uA
DMMSet
e
SM2060
SM
n
clude "SM206032.h"
clude "DMMUser.h"
int
DMMSetDCVSource(int
nDmm, double ldVolts)
Remarks
his function sets the DC voltage source output to
ldVolts
. The DMM must be in
n to execute properly. Reading the DMM
(DMMRead
or
MMReadStr
) will return the measurement of the output voltage at the DMM
it source DAC. If better accuracy is needed
it can be accomplished by selecting the ClosedLoop mode (
DMMSetSourceMode
). This
e
0 when using
the Closed Loop mode. The DMM reads voltages using the 24 V range.
Parameter
DCVSourc
2064
;
Descriptio
Set the DCV source output level.
#in
#in
T
VDC_SRC
for this functio
D
terminals. This function acts on the main 12 b
mode engages the Trim DAC, which augments the 12 bit DAC to produce 16 effectiv
bits. In ClosedLoop mode, the source level is adjusted every time the DMM is read,
making small corrections until the reading is equal to
ldVolts.
However, for the
ClosedLoop mode to update the source level, it is necessary to read the DMM multiple
times. Aperture should be set to 80ms or higher, with Read Interval set to
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
ldVolts
double
DC voltage to be set. Can be –10.5 to 10.5 V
Return Value
Integer error code.
Value
Meaning
DMM_OKAY
Operation successfully completed.
Negative Value
Error code
Example
double reading; int I;
ource to 1.25V
for(I=0;I<100;I++) DMMRead(0,&reading); // update 100 times
DMMSetDCVSource(0, 1.25); // Set s
DMMSetSourceMode(0, CLOSED_LOOP); // Closed loop mode