
123
Signametrics
Description
int
DMMSetSourceMode(int
nDmm, int iMode)
Remarks
This
Secondary
function sets the DC voltage sources to either
OPEN_LOOP
or
CLOSED_LOO
AC. In
CLOSED_LOO
used, which augments the 12 bit DAC to
produce 16 effective bits. Open loop updates are very quick. In ClosedLoop mode the
sted every time the DMM is read, making small corrections until the
reading is equal to the set voltage
.
However, for the ClosedLoop mode to update the
source lev
essary to read the DMM multiple times. See
DMMSetDCVSource
for more details.
Parameter
Set the DCV and ACV sources to ClosedLoop, or OpenLoop mode.
#include "SM206032.h"
#include "DMMUser.h"
P
. In
CLOSED_LOOP
the sources use the main 12 bit source D
P
the Trim DAC is also
source level is adju
el, it is nec
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
iMode
eturn Value
Integer error code.
int
Source adjustment mode: CLOSED_LOOP or OPEN_LOOP
R
Value
Meaning
DMM_
Negativ
xample
, CLOSED_LOOP); // Select closed loop mode
SetSync
SM2060
;
SM2064
;
Description
Remarks
e the
Parameter
OKAY
Operation successfully completed.
e Value
Error code
E
DMMSetSourceMode(0
DMM
Enables and sets polarity of Sync output line.
#include "SM206032.h"
int
DMMSetSync
(
int nDmm, int bEnable, int iPolarity
)
This function enables or disables the Sync output (available at the DIN7). If
bEnable
is
set
TRUE
, iPolarity effects the sync output level. iPolarity set to 0 asserts low level, and
1 sets to high level pulse. This signal can be used as a busy signal or to synchroniz
DMM to other instruments. The default is a disabled output, and active low.
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
bSync
int
Determines whether or not the Sync output is enabled. TRUE
e
iPolarity
int
Determines the polarity of the output. 0 sets it to active low and 1
to active high level.
nables and FALSE disables it. The default is FALSE.