Please enable JavaScript to view this site.

 Network Analyzers using S2VNA software

In the advanced mode, the algebraic expression is arbitrary and can include a long list of mathematical functions and an unlimited number of arguments.

Step-by-step Setup of the Basic Mode

1.Select an active channel and an active trace, in which the calculator trace will be displayed after the calculation.

2.Turn on the calculator (see Turning on the calculator).

3.Click the Advanced softkey to enter Advanced Mode.

4.Construct a algebraic expression using mathematical functions and available arguments. The expression field turns green if a valid expression is entered. If the expression contains an error, the field turns red, and a system message describes it.

5.Click the OK or Apply button to calculate the expression. By clicking the Apply button, the calculator trace is calculated and drawn using the current measurement data. Clicking OK does the same thing but closes the calculator window.


note

The active trace is transformed into a calculator trace when the user clicks Apply or OK. Any changes to operands and formulas in the calculator window are not drawn on this trace until this point.

If the active trace is already a calculator trace, then the changes the user makes are applied to the calculations immediately and are drawn in real time on the calculator trace. When changing the active trace, the changes are not saved unless the Apply or OK buttons are clicked after making the changes.


The figure below shows the calculator window in the advanced mode. The purpose of the calculator window items is described in the table below.

Advanced Calculator Window

Advanced Calculator Mode

Calculator Window Items

Item

Description

Trace name field

Name of the calculator trace. By default, the Trace Name field is identical to the name of the operands and expression used and is displayed in gray (See the figure above). If necessary, the field can be edited.

Expression field

The field indicates a custom algebraic expression that is displayed on the calculator trace. The expression field turns green if a valid expression is entered. If the expression contains an error, the field turns red. The entered expressions are remembered and can be selected and edited in the drop-down list of this field.

A system information message is displayed below the Expression field. If an error occurs, an explanatory message appears.

Functions area

List of available math functions (see table below). Functions can be sorted into lists: Basic / All. The basic list of features is highlighted in bold in the table below.

Trace area

List of traces for selecting a data source. Traces can be sorted into lists Data | Source data | Display data | All, where:

Data (Tr, Tr.Mem) – trace data of measurement or memory, mathematically processed, before the formatting stage.

Source data (Tr.Scr, Tr.Mem.Scr) – trace data of measurement or memory, at the stage after measurement selection, before mathematical processing.

Display data (Tr.Disp, Tr.Mem.Disp) – trace data of measurement or memory formatted and prepared for display.

All – full list of the traces.

Parameters area

Contains a list of S-parameters and absolute receiver measurements. The parameters available in the list can be sorted by S-parameters | Absolute | All softkey.

Additional keyboard

Keyboard for quick input. The keyboard is located to the right of the Parameters area. The functions and constants located on it are described in the table.

Apply softkey

Activating the entered operands and functions to calculate the calculator trace, which will be displayed in the channel window. The calculator trace is then updated as new data arrives.

OK softkey

Activating the entered operands and functions to calculate the calculator trace, which will be displayed in the channel window. The calculator trace is then updated as new data arrives, and the calculator window is closed.

Cancel softkey

Excluding from the calculation changes that were made after clicking the Apply button.

Basic softkey

Switch to basic mode (see Basic mode).

Available Advanced Mode Math Functions

Function (Basic / All)

Description

acos(scalar a)

Returns the arc cosine of a scalar quantity a

asin(scalar a)

Returns the arc sine of a scalar quantity a

atan(scalar a)

Returns the arc tangent of a scalar quantity a

atan2

Returns the phase of complex a = (re,im) in radians, has the following  two argument sets:

atan2(complex a)

conj(complex a)

Returns the complex conjugate of a complex number a

cos(complex a)

Returns the cosine of a complex number a

cpx(scalar a, scalar b)

Returns a complex value (a+ib) from two scalar values a and b

e

Returns the constant =~ 2.71828...

exp(complex a)

Returns the exponential of a

frequency

Returns the frequency value at the sweep point for which the expression is being evaluated

getNumPoints()

Returns the number of points for the current sweep

im(complex a)

Returns the imag part of a as the scalar part of the result (zeroes the imag part)

kfac(complex a, complex b, complex c, complex d )

Returns a scalar result - the imaginary part of the complex result is always 0

k-factor: k = (1 - |a|2 - |d|2 + |a*d-b*c|2 ) / (2 * |b·c|)

ln(complex a)

Returns the natural logarithm of a

log10(complex a)

Returns the base 10 logarithm of a

mag(complex a)

Returns sqrt(a.re*a.re+a.im*a.im)

max(complex a, complex b, ...)

Returns the complex value that has the largest magnitude of a list of values

median(complex a, complex b,...)

Returns the median of a list of complex values. The median is determined by sorting the values by magnitude, and returning the middle one. If an even number of values is passed, then the smaller of the two middle values is returned.

min(complex a, complex b, ...)

Returns the complex value that has the smallest magnitude of a list of values

phase(complex a)

Returns atan2(a) in degrees

PI

Returns the numeric constant pi (3.141592), which is the ratio of the circumference of a circle to its diameter

pow(complex a,complex b)

Returns a to the power b

re(complex a)

Returns the scalar part of a (zeroes the imag part)

sin(complex a)

Takes a in radians and returns the sine

sqrt(complex a)

Returns the square root of a, with phase angle in the half-open interval (-pi/2, pi/2]

tan(complex a)

Returns the tangent of the specified complex number a

xAxisIndex()

Returns the current index in the sweep

NOTE

1.The functions included in the basic list are highlighted in bold in the table.

2.The argument modifier (complex x) means that the function uses a complex value.

3.The argument modifier (scalar x) means that the function uses a scalar value. If the value is complex, an error message will appear.

4.a, b, c, d are the function arguments.

Additional Keyboard

Constants, functions, operators

Description

PI

Numeric constant PI = 3,14159

E

Numeric constant E = 2,71828

j

Complex unit

X^Y

Exponential function f(x) = a^x

Im

Function im(complex a)

Re

Function re(complex a)

log

Function log10(complex a)

sin

Function sin(complex a)

cos

Function cos(complex a)

ln

Function ln(complex a)

tan

Function tan(complex a)

Phase

Phase φ (z) = arctan

Rev.:  24.1