Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-103
dmm.measure
Function
Handles taking measurements on the DMM without using the trigger model.
Usage
There are two ways to use this function:
1. To return the last reading of the measurement process taken and accounted for by
dmm.measurecount:
reading = dmm.measure()
reading
: Contains the last reading of the measurement process
2. To return the last reading of the measurement process while storing all readings
accounted for by dmm.measurecount:
reading = dmm.measure(rbuffer)
rbuffer
: A previously created reading buffer object where all the reading(s) will be stored.
reading
: Contains the last reading of the measurement process
Remarks
This function returns only the last actual measurement as reading. To use the additional
information acquired while making a measurement, a reading buffer must be used. If the
instrument is configured to return multiple readings when a measurement is requested, all
readings will be available in the reading buffer if one is designated and has been created
(see
rbuffer
in Usage), but only the last reading will be returned as reading.
The
dmm.measurecount
(on page 9-103) attribute determines how many measurements
are performed. When using a buffer, it also determines the number of readings to store in
the buffer.
Also see
dmm.makebuffer
(on page 9-98)
dmm.measurecount
(on page 9-103)
dmm.measurewithtime
(on page 9-104)
Example
To perform 100 DC voltage measurements and store them in a buffer called "mybuff":
mybuff = dmm.makebuffer(100)
dmm.func = "dcvolts"
dmm.measurecount = 100
dmm.measure(mybuff)
dmm.measurecount
Attribute
Indicates the number of measurements to take when a measurement is requested by
dmm.measure.
Usage
To read measure count:
count = dmm.measurecount
To write measure count:
dmm.measurecount = count
count
: Number of measurements. Maximum value: 32000