2400 Series SourceMeter
®
User’s Manual Relative and Math 8-9
Figure 8-2
Connections for voltage coefficient tests
User-defined math functions
In addition to the pre-defined math functions, you can also define your own functions by
using appropriate remote commands (user-defined math functions are not available from
the front panel). The following paragraphs summarize the basic commands for user-
defined functions and also list a basic programming example. See Section 18, “Calculate
subsystems,” for more details on user-defined math functions.
Commands for user-defined math functions
Table 8-5 summarizes the commands for user-defined math functions. To define a math
function:
1. If desired, assign units to the calculation result using :CALC:MATH:UNIT. Units
is stored for the calculation.
2. Assign a name to the expression (using up to 10 ASCII characters) using the
:CALC:MATH:NAME “user-name” command.
3. Define the expression using the :CALC:MATH:DEFine or
:CALC:MATH:EXPRession command. The new expression is the one that will be
presently selected.
4. Enable the math function by sending :CALC:STATE ON.
5. Turn on the output by sending :OUTP ON, then send :INIT to trigger the unit.
6. Request the data with the :CALC:DATA? query.
SourceMeter
250V
PEAK
5V
PEAK
HI
LO
OUTPUT
1100V
PEAK
1100V
PEAK
EDIT
TOGGLE
POWER
RANGE
INPUT/
OUTPUT
4 WIRE
SENSE
DISPLAY
ON/OFF
TERMINALS
FRONT/
REAR
AUTO
RANGE
Resistor
Under
Test
!
EXIT ENTER
CONFIG MENU
SWEEP
TRIG
REL
LOCAL
FILTER
LIMIT
DIGITS SPEED
V
Ω
MEAS
I
FCTN
V
I
SOURCE
230
1
67
89
4
+/-
5
STORE
RECALL
EDIT
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com