Signametrics
54
MBur
each
ile( ! DMMReady(0) );
// wait for completion
50 ; i++)
// read 64 readings from DMM’s
uffer
Buffer[i] = DMMReadBuffer(0);
DMMBurstRead
SMX2040
;
SMX2042
ings operation, sending back measurements as they
lude "sm2
lude "User
int
DMMBurs
ng readings back to the computer.
This function is
e
DMMSetTrigRead
function, with the exception that it
does not wait for a hardware trigger to start making measurements. Following reception
omman
burst read mode, where it takes
iSettle
+ 1 readings
t measu
n, range, and reading rate; and sends the last reading to the
iSamples
. Following the issue of this
command, and
mpels
ements are read, it is necessary to read the samples from the DMM
. This
te at
ement rate should be set to 10rps or higher. The total time it takes
plete this process is equal to
iSamples
* (
iSettle
+ 1) / (measurement rate).
Measurement
to monitor when reading becomes available, and to
read the data. Read as many samples as
iSamples
to guarantee proper conclusion of this
Parame
DM
stBuffRead(0, 4, 50); // 4 settling readings for
// measurement, and take 50 readings
wh
o
f r(i=0; i <
// on-board b
;
SMX2044
;
Description
Setup the DMM for multiple read
come.
#inc
#inc
04032.h"
DMM.h"
tRead(int
nDmm, int iSettle, int iSamples)
Remarks
Set the DMM to take multiple measurements, sendi
similar to th
of this c
at the se
d the DMM enters a
rement functio
computer. This process repeats for
until
iSa
measur
using the
DMMReadMeasurement
command as fast as they become available
will prevent an Overrun communication error, which is an indication that the ra
which measurements are read from the bus do not keep up with the DMM transmission.
The DMM has five readings FIFO to lessen this problem. No autoranging is allowed in
this mode. This function is usable for VDC, VAC, Ohms, IAC, IDC, and RTD
measurements. Measur
to com
Use the
DMMRead
capture process.
ter Type/Description
arting with zero.
iSettle
iSamples
e
number of trigger pulses. This number must be between 1 and 32,000,
Return Value
The return valu
nDmm
int
Identifies the DMM. DMMs are numbered st
int
The number of settling measurements prior to read value. Must be
set between 0 and 250. Recommended value is 4.
int
The number of samples the DMM takes following the sam
inclusive.
e is one of the following constants.
Value Meaning
DMM_OKAY
Negative Value
Error code.
[250];
DMMBurstRead(0, 10, 250); // settle 10 reads., 250 samples
for(i=0; i < 250 ; i++) // read 250 meas. as they come
Operation successfully terminated
Example
double
Reading
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com