Using Math and Move Commands

This section covers math and move commands which modify data and store the results in memory. In addition, four rules are provided for using math with trace arrays and elements.

Each math and move command requires both source and destination arguments. The value of the source is used to obtain the data stored in the destination. Only variables or traces can be a destination. Sources can be variables, traces, real numbers, or any command listed in the following table. (The commands in this table can only be used with commands whose syntax diagram shows predefined function as a source. Syntax diagrams for each command are illustrated in Chapter 7.)

Commands That Can Be a Source

Command

 

 

 

 

De￿nition

AMPU

Amplitude-unit

conversion

FUNCDEF

Create user-de￿ned function

MEAN

Mean value of data points

MEASU

Measurement-unit

conversion

MEM

Available

internal memory

MKBW

Marker

bandwidth

 

MODADD

Return slave module's HP-MSIB address

MODID

Identify

module

or

instrument HP-MSIB address

PEAKS

Trace peaks

found

 

POSU

Position-unit

conversion

PWRBW

Power bandwidth

 

RMS

Root mean square

 

STB

Status b yte

 

 

 

STDEV

Standard deviation

of trace values

SUM

Sum

 

 

 

 

SUMSQR

Sum of squares

 

VARIANCE

Variance

 

 

 

 

WLUNITS

Wavelength-unit conversion

 

 

 

 

 

 

Below, the MOV command transfers a value from the source (prede￿ned variable) to the destination (user-de￿ned variable).

2-15