DIV Divide
Example
OUTPUT
718*"IP-"
OUTPUT
718;"SNk;"
OUTPUT
718."TS-"
OUTPUT
718;&
TRB,TRA,2;"
OUTPUT
718;"VIEW
TRB;"
Description
Initializes the spectrum
analyzer
Activates single-sweep
mode.
Updates trace information.
Divides trace A
&q
two and places it in trace B
D&plugs the result.
Integer values are used when a trace is either the destination or one of the sources. If trace
data is used both as the source and the destination, the DIV function is done with 32-bit
arithmetic on 16-bit integer data. If a user-defined variable or predefined variable is used as
either the source or the destination, the DIV function is done in floating-point format. If a real
number is used as a source, but the destination is an integer value, the result is truncated.
If a trace is used as a source, be sure the trace contains a complete sweep of measurement
information before executing DIV.
When the source is longer than the destination, the source is truncated to fit. When the source
is shorter than the destination, the last element is repeated to fill the destination.
The results of the DIV function are invalid if source 2 is equal to zero.
5-134 Programming Commands