User Manual

8-8 Relative and Math 2400 Series SourceMeter
®
User’s Manual
User-defined math function programming example
Table 8-5 shows the command sequence for a typical user-defined math function.
This example defines a percent deviation math function.
Table 8-4
Commands for user-defined math functions
Command Description
:CALCulate:MATH:UNITs <name>
:CALCulate:MATH:NAME <name>
:CALCulate:MATH[EXPression] <form>
:CALCulate:STATe <state>
:CALCulate:DATA?
Specified units for user-defined function (name = three
ASCII characters in quotes).
Define math name (name = “user-name”).
Define math formula (form = formula).
Valid names: VOLTage, CURRent, RESistance, TIME.
Valid math operators: + - * / ^ log, ln, sin, cos, tan, exp.
Enable/disable math (state = ON or OFF).
Query math data.
Table 8-5
User-defined math function programming example
Command Description
*RST
:SENS:FUNC:OFF:ALL
:SENS:FUNC:ON “RES”
:CALC:MATH:UNIT “%”
:CALC:MATH:EXPR:NAME “PER_DEV”
:CALC:MATH:EXPR (((RES - 10e3) / 10e3) * 100)
:CALC:STAT ON
:OUTP ON
:INIT
:CALC:DATA?
Restore GPIB defaults.
Disable concurrent functions.
Select resistance function.
Define “%” units name.
Define math expression name.
Define math expression.
Enable math data.
Turn on output.
Trigger unit.
Request math data.