Agilent Technologies 16522A User Manual page 47

200-m vectors/s pattern generator
Table of Contents

Advertisement

Agilent Technologies 16522A Reference
The User Macros Menu
Add/Delete Macro
Selecting this field brings up a pop-up menu that allows you to choose
between adding a new macro or deleting one. If you select Add Macro, a new
blank macro appears in the display with a new Macro "n" name.
To rename the new macro, select the macro name field, and in the pop-up
menu that appears, type in a new name. You can also add parameters to the
new macro in the same pop-up menu. For more information on parameters,
refer to "Using Parameters" below.
If you select Delete Macro, you will be presented with a list of current
macros. Select the macro you want to delete from the list. If the macro you
delete is being used in the MAIN sequence, it will be removed from the
sequence. If you try to delete the first macro, it will be removed from the
MAIN sequence but not from the macro list.
Using Parameters
Parameters are used to pass values into macros. A major benefit in passing
parameters is that you keep a macro's functionality generic and still direct
specific action identified by parameters. Think of parameters as the only part
of a macro that changes as the macro is reused.
You create the macro and add parameters to the macro in the User Macro
menu. You then insert the macro and assign parameter values in the
Sequence menu. As you reuse the macro in other places in the sequence,
simply change parameter values to the new specific values.
Macro parameters are passed as 32 bit values. If fewer than 32 bits are
assigned to a label in the Format menu, the most significant bits of the
parameter value are truncated when the parameter is used as data for the
given label.
For more information on using macros and parameters, refer to chapter 1.
2–15

Advertisement

Table of Contents
loading

Table of Contents