mathvar
¶
The mathvar commands module.
These commands are used in the following models: DPO2K, DPO2KB, DPO4K, DPO4KB, DPO5K, DPO5KB, DPO70KC, DPO70KD, DPO70KDX, DPO70KSX, DPO7K, DPO7KC, DSA70KC, DSA70KD, MDO3, MDO3K, MDO4K, MDO4KB, MDO4KC, MSO2K, MSO2KB, MSO4K, MSO4KB, MSO5K, MSO5KB, MSO70KC, MSO70KDX
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Commands and Queries
- MATHVAR:VAR<x> <NR3>
- MATHVAR:VAR<x>?
- MATHVAR?
Mathvar
¶
Bases: SCPICmdRead
The MATHVAR command.
Description
- Queries both numerical values you can use within math expressions.
Usage
- Using the
.query()method will send theMATHVAR?query. - Using the
.verify(value)method will send theMATHVAR?query and raise an AssertionError if the returned value does not matchvalue.
SCPI Syntax
- MATHVAR?
Properties
.var: TheMATHVAR:VAR<x>command.
var
property
¶
var: dict[int, MathvarVarItem]
Return the MATHVAR:VAR<x> command.
Description
- This command specifies one of two different numerical values you can use within math
expressions. These values can range from -10.0e-18 to 1.0e+15; the default values are
0.0.
specifies the location, 1 or 2, in which you can store values. Stored math variables can be referenced within math expressions as VAR1 and VAR2. For example, the following command defines MATH1 as the product of Channel 1 and math variable 1: MATH1:DEFINE‘CH1 * VAR1’.
Usage
- Using the
.query()method will send theMATHVAR:VAR<x>?query. - Using the
.verify(value)method will send theMATHVAR:VAR<x>?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theMATHVAR:VAR<x> valuecommand.
SCPI Syntax
- MATHVAR:VAR<x> <NR3>
- MATHVAR:VAR<x>?
Info
<NR3>is a floating point number that specifies the numerical value to be stored in location x <1 through 2>.
MathvarVarItem
¶
Bases: ValidatedDynamicNumberCmd, SCPICmdWrite, SCPICmdRead
The MATHVAR:VAR<x> command.
Description
- This command specifies one of two different numerical values you can use within math
expressions. These values can range from -10.0e-18 to 1.0e+15; the default values are 0.0.
specifies the location, 1 or 2, in which you can store values. Stored math variables can be referenced within math expressions as VAR1 and VAR2. For example, the following command defines MATH1 as the product of Channel 1 and math variable 1: MATH1:DEFINE‘CH1 * VAR1’.
Usage
- Using the
.query()method will send theMATHVAR:VAR<x>?query. - Using the
.verify(value)method will send theMATHVAR:VAR<x>?query and raise an AssertionError if the returned value does not matchvalue. - Using the
.write(value)method will send theMATHVAR:VAR<x> valuecommand.
SCPI Syntax
- MATHVAR:VAR<x> <NR3>
- MATHVAR:VAR<x>?
Info
<NR3>is a floating point number that specifies the numerical value to be stored in location x <1 through 2>.