Language Reference

PDWL

Example

100

CLEAR 723

 

Initialize analyzer .

 

110

OUTPUT 723;"IP;"

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

120

OPTION BASE 1

 

Specify lower boundary of com-

 

 

 

 

 

puter arrays to be 1.

 

130

DIM A(20)

 

Dimension 20-element computer

 

 

 

 

 

array.

 

 

 

 

 

 

140

ASSIGN @Sa TO 723

 

Assign address 723 to @Sa.

 

150

OUTPUT @Sa;"TRDEF B_IN,20;MOV B_IN,0;"

De￿ne 20-element user-de￿ned

 

160

OUTPUT @Sa;"TRDEF P_WL,20;MOV P_WL,0;"

trace, B

 

 

IN.

 

 

 

 

 

 

De￿ne 20-element user-de￿ned

 

 

 

 

 

trace, P

 

WL. Store zero in all

 

170

OUTPUT @Sa;"CENTERWL 750NM;SP 100NM;"

points of P

 

WL.

 

 

 

 

 

 

Set measurement range .

 

180

OUTPUT

@Sa;"SNGLS;TH

-60DBM;TS;"

Activate single-sweep mode. Set

 

 

 

 

 

threshold to 060 dBm. Sweep

 

 

 

 

 

trace A once .

 

 

 

 

 

 

190

OUTPUT

@Sa;"COMPRESS

B_IN,TRA,POS;"

Compress contents of trace A

 

200

OUTPUT

@Sa;"PDWL,P_WL,B_IN;"

and store results

in B

 

IN.

 

If the amplitude

of a point in

 

 

 

 

 

B

 

IN exceeds the threshold, store

 

 

 

 

 

a \1" in the corresponding point

 

210

OUTPUT

@Sa;"TDF M;"

 

in P

 

WL.

 

 

 

 

 

 

 

Format trace-output data in mea-

 

 

 

 

 

surement units.

 

 

 

 

 

 

220

OUTPUT

@Sa;"P_WL?;"

 

Query values stored in P

 

WL to

 

 

 

 

 

 

 

 

computer.

 

 

 

 

 

 

230

ENTER

@Sa;A(*)

 

Store values in computer array.

 

240

FOR I=1 TO 20

 

Print values (0 or 1).

 

250

PRINT

A(I)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

260

NEXT I

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

See Also

The PDWL command augments the destination trace with the wavelength-distribution function of the source trace. Elements in the source trace that are above the threshold value cause corresponding elements in the destination trace to be increased in amplitude by one measurement unit. Use the threshold command, TH, to change the threshold value. Otherwise, its default value is nine major divisions below the reference level.

TH

7-373