Chapter 4 Command Reference
Introduction
Programming Guide
4-125
*DMC <string>, <arbitrary block>
(Define Macro Command)
*DMC <string>, <arbitrary block>
This command assigns a sequence of zero or more commands/queries to a macro
label. The sequence is executed when the label is received as a command or query.
The <string> parameter specifies the macro label. The macro label may not be a
common command/query header. It may be the same as an instrument-specific
command/query header; in this case, provided macros are enabled, the macro
expansion is executed and the instrument-specific command/query may be
executed by disabling macros.
The <arbitrary block> contains the sequence of commands/queries being labeled.
Parameters may be passed to the sequence during execution. Placeholders for
parameters appear in the sequence as a dollar sign followed by a single digit in the
range one to nine inclusive. The first parameter following the macro label is
substituted for the parameter placeholder labeled $1, and so on up to nine
parameters.
See the section titled “How to Program the Counter to Define Macros” in Chapter
3 of this guide.
•
The maximum macro label length is 12 characters.
•
Redefining an existing macro causes an execution error.
•
The Counter allows up to four levels of recursion.
•
There is no query form. Use *GMC? (see page 4- 129) to query the current
definition of a macro label.
Comments
Summary of Contents for 53131A
Page 1: ...Programming Guide HP 53131A 132A 225 MHz Universal Counter ...
Page 2: ......
Page 13: ...1 1 Before You Start ...
Page 24: ...Chapter 1 Before You Start Related Documentation 1 12 Programming Guide ...
Page 25: ...2 2 Command Summary A Quick Reference ...
Page 68: ...Chapter 2 Command Summary RST Response 2 44 Programming Guide ...
Page 69: ...3 3 Programming Your Universal Counter for Remote Operation ...
Page 167: ...4 4 Command Reference A Dictionary ...
Page 310: ...Chapter 4 Command Reference WAI Wait to Continue Command 4 144 Programming Guide ...
Page 311: ...5 5 Errors ...
Page 329: ......
Page 330: ...H Manual Part Number 53131 90044 Printed in U S A NOVEMBER 1996 ...