Define
SCPI Command :
CALCulate:MATH<*>[:EXPRession][:DEFine]
- Commands in total: 1Subgroups: 0Direct child commands: 1
- get(math=Math.Default) str[source]
# CALCulate:MATH<*>[:EXPRession][:DEFine] value: str = driver.calculate.math.expression.define.get(math = repcap.Math.Default)
Defines the math expression to be calculated for the specified math channel. Operation / <Expression> / Comment
Addition / ‘C1+C2’
Subtraction / ‘C1-C2’
Multiplication / ‘C1``*C2``’
Division / ‘C1/C2’ / 0/0 = 0 +1 / 0 = Clip+ -1 / 0 = Clip
Inverting / ‘-C1’
Absolute value / ‘Abs(C1) ‘
Derivation / ‘Derivation(C1,NoiseReject) ‘ / NoiseReject can get any value between 1 and 5000 points Default = 50
Integral / ‘Integral(C1) ‘
Logarithm (based on 10) / ‘Log(C1) ‘ / Uses the absolute value of the source in calculation. Log(0) = Clip
Natural logarithm (based on e) / ‘Ln(C1) ‘ / Uses the absolute value of the source in calculation. Log(0) = Clip
Binary logarithm (based on 2) / ‘Ld(C1) ‘ / Uses the absolute value of the source in calculation. Log(0) = Clip
Square / ‘Pow(C1) ‘
Square root / ‘Sqrt(C1) ‘ / Uses the absolute value of the source in calculation.
Rescale / ‘Rescale(C1,a,b) ‘ / a = scale, default = 1 b = offset, default = 0
FIR / ‘FIR(Type,C1,Cut-Off,Characteristics) ‘ Examples: ‘FIR(highpass,C1,10000000,Gaussian) ‘ ‘FIR(lowpass,C1,10000000,rectangle) ‘ / Type = lowpass, highpass Cut-Off = limit frequency Characteristics = Gaussian, rectangle Cut-Off can get any value between 4 GHz and 1 kHz
- Parameters:
math – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Math’)
- Returns:
expression: String with regular expression for calculation
- set(expression: str, math=Math.Default) None[source]
# CALCulate:MATH<*>[:EXPRession][:DEFine] driver.calculate.math.expression.define.set(expression = 'abc', math = repcap.Math.Default)
Defines the math expression to be calculated for the specified math channel. Operation / <Expression> / Comment
Addition / ‘C1+C2’
Subtraction / ‘C1-C2’
Multiplication / ‘C1``*C2``’
Division / ‘C1/C2’ / 0/0 = 0 +1 / 0 = Clip+ -1 / 0 = Clip
Inverting / ‘-C1’
Absolute value / ‘Abs(C1) ‘
Derivation / ‘Derivation(C1,NoiseReject) ‘ / NoiseReject can get any value between 1 and 5000 points Default = 50
Integral / ‘Integral(C1) ‘
Logarithm (based on 10) / ‘Log(C1) ‘ / Uses the absolute value of the source in calculation. Log(0) = Clip
Natural logarithm (based on e) / ‘Ln(C1) ‘ / Uses the absolute value of the source in calculation. Log(0) = Clip
Binary logarithm (based on 2) / ‘Ld(C1) ‘ / Uses the absolute value of the source in calculation. Log(0) = Clip
Square / ‘Pow(C1) ‘
Square root / ‘Sqrt(C1) ‘ / Uses the absolute value of the source in calculation.
Rescale / ‘Rescale(C1,a,b) ‘ / a = scale, default = 1 b = offset, default = 0
FIR / ‘FIR(Type,C1,Cut-Off,Characteristics) ‘ Examples: ‘FIR(highpass,C1,10000000,Gaussian) ‘ ‘FIR(lowpass,C1,10000000,rectangle) ‘ / Type = lowpass, highpass Cut-Off = limit frequency Characteristics = Gaussian, rectangle Cut-Off can get any value between 4 GHz and 1 kHz
- Parameters:
expression – String with regular expression for calculation
math – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Math’)