Model 2461 Interactive SourceMeter® Instrument Reference Manual Section 8: TSP command reference2461-901-01 A/November 2015 8-119smu.digitize.math.enableThis attribute enables or disables math operations on measurements for the selected digitize function.Type TSP-Link accessible Affected by Where saved Default valueAttribute (RW) Yes Restore configurationInstrument resetPower cycleMeasure configuration listConfiguration scriptMeasure configuration listsmu.OFFUsagevalue = smu.digitize.math.enablesmu.digitize.math.enable = valuevalue The math enable setting:• Disable: smu.OFF• Enable: smu.ONDetailsWhen this command is set to on, the math operation specified by the math format command isperformed before completing a measurement.Examplesmu.digitize.func = smu.FUNC_DIGITIZE_VOLTAGEsmu.digitize.math.format = smu.MATH_PERCENTsmu.digitize.count = 1smu.digitize.math.percent = smu.digitize.read()smu.digitize.math.enable = smu.ONsmu.digitize.count = 5MathBuffer = buffer.make(100)smu.digitize.read(MathBuffer)printbuffer(1, MathBuffer.n, MathBuffer.formattedreadings)smu.digitize.count = 1for x = 1, 3 doprint(smu.digitize.read(MathBuffer))endConfigure 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 100readings.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.998932056Also seeCalculations that you can apply to measurements (on page 3-82)smu.digitize.math.format (on page 8-120)