Signametrics
126
Remarks
Setup for external hardware trigger operation. Following reception of this
d the
selected
iEdge
polarity on its external trigger, the DMM makes
iSettle
+ 1
and s
t the currently set
ent function, range, Aperture and Read Interval. This process is
for
iS
re,
iSamples
Trigger pulses must be issued
s particularly useful in conjunction with
42 relay scanner. No auto ranging is
mmand and until
iSampels
p with the DMM and read all
g to do so will result in
mmun
e the likelihood of an
overrun. This function is usable for VDC, VAC, Ohms, IAC, IDC and RTD
measurements. Use the
DMMReadMeasurement
to monitor for data
availability, and to read this data.
Parameter
comman
DMM enters a wait state. In response to the detection of the
readings
ends the last reading to the PC. It does it a
measurem
repeated
amples
times. Therefo
to complete this process. This function i
40
triggering instruments such as the SM
allowed in this mode.
Following the issue of this
co
measurements are read back, it is necessary to keep u
ample
iS
measurements as fast as they come. Failin
co
ication overrun.
The DMM has a small FIFO to reduc
Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
iSettle
int
The number of setteling measurements, prior to read value. Must
be set between 0 and 250.
iSamples
int
The number of samples the DMM takes following the same
number of trigger pulses. This number must be between 1 and 30,000.
iEdge
Int
The edge polarity of the trigger signal. 1 for Positive, or leading
edge, and 0 for negative or trailing edge trigger.
turn Value
The return value is one of the following constants.
Value
Re
Meaning
DMM_OKAY
Operation successfully terminated
Negativ
Example
];
MMSetTrigRead(0, 4, 150, 0); // Negative edge, 4
for(i=0; i < 150 ; i++)
// read buffer
while( ! DMMReadMeasurement(0 , Reading[i]) );
DMMSetTrimDAC
SM2060
SM2064
;
Description
Set the Trim DAC level.
#include "SM206032.h"
#include "DMMUser.h"
int
DMMSetTrimDAC(int
nDmm, int iValue)
Remarks
This function sets the Trim DAC to a value between 0 and 100. The trim DAC can be set
to augment the main 12 bit DAC, whenever it is not automatically performed, such as in
VDC and VAC source while
OPEN_LOOP
mode is selected. An example would be in
DCI source, or when setting the Comparator Threshold. This function consumes a lot of
e Value
Error code.
double
Reading[150
D
//setteling readings, and 150 samples/triggers