
Signametrics
70
Example
double
Buffer[70];
DMMArmTrigger(0,70);
// Setup to capture 70 post trigger samp.
while( ! DMMReady(0));
// wait for ready
for(i=0; i < 70 ; i++)
// read measurements from internal buffer
j = DMMReadBuffer(0, &Buffer[i]);
DMMBurstBuffRead
2060
2064
Description
Setup the DMM for Triggered operation.
#include "SMU2060.h"
#include "USBDMMUser.h"
int
DMMBurstBuffRead(int
nDmm
, int
iSettle
, int
iSamples
)
Remarks
Following reception of this command the DMM enters a burst read mode, taking a total
of
iSamples
measurements at the currently set measurement function, range, Aperture
and Read Interval. Those readings are saves to the on-board buffer. Each measurement I
preceded by iSettle readings, which are discarded. Therefore for each sample saved
i 1 readings are taken. The last reading is saved. This process repeats for
iSamples
. No other DMM command should be issued until the process is complete, and
the contents of the buffer are read. One exception is the
DMMDisarmTrigger
command, which terminates the process. No auto ranging is allowed in this mode. This
function is usable for VDC, VAC, Ohms, IAC, IDC and RTD measurements.
Measurement Aperture should be set to 160ms or lower. The total time it takes to
complete this process is approximately
iSamples
* (
iSettle
+ 1) * Aperture (or Read
Interval, if set).
Use the
DMMReady
to monitor if the has completed the operation, and is ready. When
ready, read up to
iSamples
, using
DMMReadBuffer
or
DMMReadBufferStr
functions.
Once
DMMReady
returns TRUE, it should not be used again until the buffer is read,
since it clears some flags in preparation for buffer reading when it detects a ready
condition.
Parameter Type/Description
iDmm
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 80 or
120 depending on set Aperture.
Return Value
The return value is one of the following constants.
Value Meaning
DMM_OKAY
Operation successfully terminated
Negative Value
Error code.
Example
double
Buffer[50];
DMMBurstBuffRead(0, 4, 50); // 4 settling readings for each //
measurement, and take 50 readings
while( ! DMMReady(0) );
// wait for completion