Language Reference

FUNCDEF

De￿ne a list of analyzer commands that are executed as a user-de￿ned

 

function.

Item

 

 

 

Description

 

 

 

Function-Name Range

1 {

12

characters:

A { Z, 0 { 9, and underscore

(

 

). First character

 

must

be

a letter.

Numbers must be preceded by

underscore .

Example Create a user-de￿ned function, then assign it to a user-de￿ned key.

5 CLEAR 723

Initialize analyzer.

7OUTPUT 723;"IP;"

10

OUTPUT 723;"VARDEF H_SPAN,0;"

De￿ne user-de￿ned variable

 

 

equal to 0.

 

20

OUTPUT 723;"FUNCDEF S_HIFT,^";

Create user-de￿ned function,

 

 

called S

 

HIFT . Shift divides

 

 

the span by two and adds

 

 

the results to the center wave-

 

 

length. This

increases the

 

 

measurement

range . The \^"

 

 

delimit the de￿nition.

30

OUTPUT 723;"DIV H_SPAN,SP,2;";

 

 

 

 

40

OUTPUT 723;"ADD CENTERWL,CENTERWL,H_SPAN;";

 

 

 

 

50

OUTPUT 723;"^;"

 

 

 

 

60

OUTPUT 723;"KEYDEF 7,S_HIFT,%SHIFT_UP%;"

FFFFFFFFFFFFFFFFFFFFF

 

 

 

 

Assign the user-de￿ned function to a user-de￿ned key , called SHIFT UP .

 

7-150