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

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