core

#### Make Variables Globally Visible

(This item pertains to the check boxes on the General tab of the Setup Options dialog box. You can open it through the F5 key or through the Edit | Preferences | Setup menu option.)

Usually, when a subroutine is called, all variables go "out of scope" and are unavailable. The Make Variables Globally Visible check box makes any variables globally "visible", or usable, throughout the entire measurement routine.

By default, this check box isn't selected so that variables in a subroutine won't replace data stored in variables with the same name in the main measurement routine.

ASSIGN/V1=1

C1=CALLSUB,MYSUB

.

.

.

SUBROUTINE/MYSUB

COMMENT/OPER,V1

END/SUB

- If you deselect this check box, variables are not globally visible. The OPER comment shows a value of 0 since V1 cannot be seen from inside the subroutine.

- If you select this check box, variables are globally visible. The OPER comment shows a value of 1 since V1 can be seen from inside the subroutine.

For information on variables, see the "Using Expressions and Variables" chapter.