
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-119
smu.digitize.math.enable
This attribute enables or disables math operations on measurements for the selected digitize 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
smu.OFF
Usage
value
= smu.digitize.math.enable
smu.digitize.math.enable =
value
value
The math enable setting:
•
Disable:
smu.OFF
•
Enable:
smu.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
smu.digitize.func = smu.FUNC_DIGITIZE_VOLTAGE
smu.digitize.math.format = smu.MATH_PERCENT
smu.digitize.count = 1
smu.digitize.math.percent = smu.digitize.read()
smu.digitize.math.enable = smu.ON
smu.digitize.count = 5
MathBuffer = buffer.make(100)
smu.digitize.read(MathBuffer)
printbuffer(1, MathBuffer.n, MathBuffer.formattedreadings)
smu.digitize.count = 1
for x = 1, 3 do
print(smu.digitize.read(MathBuffer))
end
Configure the instrument for digitize voltage.
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.
Sample output assuming no load was connected to the instrument:
-100.00 %, -100.00 %, -100.00 %, -100.00 %, -100.00 %
-100.00058257
-99.999126228
-99.998932056
Also see
Calculations that you can apply to measurements
(on page 3-82)
(on page 8-120)