Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Section 8: TSP command reference
DMM7510-901-01 Rev. B / May 2015
8-167
dmm.measure.math.enable
This attribute enables or disables math operations on measurements for the selected measurement function.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Restore configuration
Instrument reset
Power cycle
Measure configuration list
Configuration script
Measure configuration list
dmm.OFF
Usage
value
= dmm.measure.math.enable
dmm.measure.math.enable =
value
value
The math enable setting:
•
Disable:
dmm.OFF
•
Enable:
dmm.ON
Details
When this command is set to on, the math operation specified by the math format command is
performed before completing a measurement.
Example
dmm.measure.func = dmm.FUNC_DC_VOLTAGE
dmm.measure.math.format = dmm.MATH_PERCENT
dmm.measure.count = 1
dmm.measure.math.percent = dmm.measure.read()
dmm.measure.math.enable = dmm.ON
dmm.measure.count = 5
MathBuffer = buffer.make(100)
dmm.measure.read(MathBuffer)
printbuffer(1, MathBuffer.n, MathBuffer.formattedreadings)
dmm.measure.count = 1
for x = 1, 3 do
print(dmm.measure.read(MathBuffer))
end
Configure the instrument for DC volts and reset the DC volts function to the default settings.
Set math format to percent.
Acquire 1 reading to use as the relative percent value.
Take 5 readings with percent math enabled and store them in a buffer called
MathBuffer
that can store 100
readings.
Take three additional readings without using the reading buffer.
Sample output assuming no load was connected to the instrument:
-100.00242 %, -100.00228 %, -100.00220 %, -100.00233 %, -100.00216 %
-100.00228175
-100.0022889
-100.00210915
Also see
Calculations that you can apply to measurements
(on page 3-7)
(on page 8-168)