Language Reference

AVG

Item

 

 

 

 

 

Description

 

 

 

Average-Ratio Range

032,768 { +32,767, except 0

 

 

 

 

 

Source or Destination Amplitude

0

{ 10,000 measurement units for

linear trace

data in

TRA, TRB , TRC,

Range

trace range , or user-de￿ned trace .

 

 

 

 

032,768 { +32,767 measurement units for logarithmic trace data in

 

 

TRA, TRB , TRC, trace range , or user-de￿ned trace .

 

 

 

6 1.8 2 10308 when using

number, prede￿ned v ariable , or

 

 

user-de￿ned v ariable .

 

 

 

 

 

 

Destination-L ength Range

1

{

2048

position

units.

 

 

 

 

 

 

Source-L ength Range

1

{

2048

position

units.

Default

is

800 position units

when using

TRA,

 

TRB, TRC . Truncated if longer than destination length. If shorter than

 

 

destination

length, last

element

is

extended

for operation.

 

Example Measure with traces A and B. Average the measurement results in the traces, then view the averaged results in trace A.

130

OUTPUT

723;"IP;"

 

Instrument preset.

140

OUTPUT

723;"SNGLS;"

Activate single-sweep mode .

150

OUTPUT

723;"TS;"

 

Take a sweep. Measure with trace A.

160

OUTPUT

723;"VIEW

TRA;"

Store measurement results and view trace A.

170

OUTPUT

723;"VB 100HZ;"

Activate the video bandwidth ￿lter .

180

OUTPUT

723;"CLRW

TRB;TS;"

Measure with trace B.

190

OUTPUT

723;"VIEW

TRB;"

Store measurement results and view trace B.

200OUTPUT 723;"AVG TRA,TRB,2;" Average trace B with 2 and store results in

trace A.

210OUTPUT 723;"BLANK TRB;" Blank trace B leaving only averaged results .

Description The AVG command averages the source and the destination, then stores the result in the destination according to the following algorithm:

destination new = ((average ratio 0 1)(destination old ) + source) averageratio

When the source is a trace, be sure it contains a complete sweep of measurement information by using SNGLS and TS commands.

7-68