beautypg.com

2 executing a macro – Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 50

background image

Section 4

General Programming

4.8

Any of the MACRO command buffers can be reported, or sent, back to

the host with the READ command. This command will output the data in the
respective buffer but will not delete the information contained in the buffer.
To have the Micro488/EX report the contents of this macro buffer type…
READ 1

The Micro488/EX will respond with…
DAY
DATE
ENDM01

4.4.2 Executing a MACRO

Macros are executed by the DOMACRO command. This command

specifies the macro number to execute. Type the following…
DOMACRO 1

The Micro488/EX will respond with…
MONDAY
JULY 4, 1988

Optionally, the DOMACRO command can specify the number of times to

execute the MACRO (loop). The number of times a single MACRO can
execute is 255. Type the following…
DOMACRO 1,3

The Micro488/EX will respond with…
MONDAY
JULY 4, 1988
MONDAY
JULY 4, 1988
MONDAY
JULY 4, 1988