Language Reference

ADD

Item

 

 

 

 

 

Description

 

 

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 Add 25 nm to the center wavelength, then store their sum in a user-de￿ned variable.

140OUTPUT 723;"SP 200NM;CENTERWL 750NM;TS;" Set measurement range and sweep it.

150

OUTPUT

723;"VARDEF I,0;"

De￿ne user-de￿ned variable I

 

 

 

equal to 0.

160

OUTPUT

723;"ADD I,CENTERWL,25 NM;"

Add 25 nm to the center wave-

 

 

 

length, then place the sum in

 

 

 

I.

Description The ADD command performs a point-by-point addition of the source variable or trace, then stores the results in the destination variable or trace. When the

source length is longer than the destination length, excess data is ignored or truncated. When the source length is shorter than the destination length, the last point is duplicated to ￿ll the destination.

When using TRA, TRB, TRC, or trace range for source, use SNGLS and TS to be sure data re￿ects one complete sweep. TRDEF required when using user-de￿ned trace. VARDEF required when using user-de￿ned variable.

7-33