TDS5000B Online Programmer Guide
-- 5 2 8 --
MATHVAR:VAR<x>
Description
This command sets or queries up to 8 different numerical values you
can use within math expressions. These values can range from --9.9e37
to 9.9e37; the default values are 0.0. <x> specifies the location, 1
through 8, in which you can store values. Stored math variables can be
reference within math expressions as VAR1, VAR2,...VAR8.
For example, the following command defines MATH1 as the product of
Channel 1 and math variable 1: MATH1:DEFINE ”CH1 * VAR1”.
Group
Math
Related Commands
MATH<x>:DEFine
Syntax 1
MATHVAR:VAR<x> <NR3>
Argument
H <NR3>
Specifies the numerical value to be stored in location x <1 through 8>.
Syntax 2
MATHVAR:VAR<x>?
Returns the value of the math variable store in location <x>.
Syntax 3
MATHVAR?
Returns the values of all variables stored in locations 1 through 8.
Example 1
MATHVAR:VAR3 -2.43e-5
Stores the value --2.43e--5 in the 3
rd
math variable location.
Example 2
MATHVAR:VAR3?
This query might return
:MATHVAR:VAR3 24.3000E-6 for the expres-
sion stored in location 3.