Math operators – Tektronix AWG610 User Manual

Page 310

Advertising
background image

Command Descriptions

3-192

AWG610 Arbitrary Waveform Generator User Manual

Math Operators

Table 3–48 lists the programming language math operators that you can use as
part of waveform equation expressions.

Table 3-48: Math operators

Operators

Description

Unary Arithmetic Operations

-

Inverts the sign.

+

Does nothing.

Binary Operations

+

Addition

-

Subtraction

*

Multiplication

/

Division

^

Exponentiation

Binary Relational Operations

=

If bothside values are equal, 1 results. Otherwise, 0 results.

<>

If bothside values are not equal, 1 results. Otherwise, 0 results.

>

If the left side value is larger than the right side value, 1 results.

Otherwise, 0 results.

>=

If the left side value is larger than or equal to the right side value, 1

results. Otherwise, 0 results.

<

If the left side value is smaller than the right side value, 1 results.

Otherwise, 0 results.

<=

If the left side value is smaller than or equal to the right side value, 1

results. Otherwise, 0 results.

Binary Conditional Operator

and

If bothside values are not 0, 1 results. Otherwise 0 results.

or

If bothside values are 0, 0 results. Otherwise 1 results.

The operator priorities are as follows, starting with higher priority at the top of
the list. Operators on the same line have equal priority.

^
– (unary), + (unary)
*, /
=, <>, >, >=, <, <=
and, or

Advertising