GUI Reference
R&S
®
ZNB/ZNBT
314User Manual 1173.9163.02 ─ 55
Expression builder
The mathematical expression appears in the upper part of the dialog. The operands
and operators in the expression can be selected from a keyboard and the list of "Oper-
ands":
●
The keyboard supports the entry of numeric values, constants, and mathematical
functions. In addition to the numbers 0 to 9, the decimal point and the constants j
(complex unit), pi (approx. 3.14159) and e (approx. 2.71828), it contains the follow-
ing buttons:
– +/- changes the sign
– The effect of the basic arithmetic operators (/, *, –, +) and the mathematical
functions is described in Table 6-2.
Products of numbers and constants may be entered in abbreviated form, e.g.
2e for 2*e.
– The Clear, Del, Back buttons are used to correct faulty entries.
– Check performs a consistency check of the displayed mathematical expression
and displays a message.
●
"Operands" contains all data traces and memory traces of the active recall set.
– Data and memory traces are identified by their trace names.
– "Data" denotes the active data trace.
– "Mem" is the memory trace associated with the active data trace (or the first
created one, if several memory traces are associated with the active data
trace).
– "StimVal" is the array of stimulus values; see footnote for Table 6-2.
The trace operands denote unmodified data and memory traces. Trace math and
other trace functions ("Smoothing", "Hold", "Shift Trace" etc.) are not taken into
account.
Table 6-2: Effect of the operators on a complex quantity z = x + jy.
+, -, *, / Basic arithmetic operations
() Grouping parts of an expression
Lin Mag |z| = sqrt ( x2 + y2 )
x
y
Exponential, e.g. z^2
dB Mag dB Mag(z) = 20 * log|z| dB
Arg Phase φ (z) = arctan ( Im(z) / Re(z) )
Re, Im x, y (Real and Imag)
log, ln Common (base 10) or natural (base e) logarithm
Min, Max Smaller or larger values of all points of two traces, e.g.
Min(Trc1,Trc2)
StimVal *) Stimulus value*)
tan, atan, sin, asin, cos, acos Direct and inverse trigonometric functions.
*) The operand "StimVal" can be used for all sweep types. Please note that – as with
all user math operands – only the numerical value without unit is processed in the user
math formula.
●
In frequency sweeps "StimVal" provides the stimulus frequency in Hz.
Trace Config Softtool