beautypg.com

Domacro – Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 98

background image

Section 5

Command Descriptions

5.28

DOMACRO

This command is used to execute the contents of a Macro buffer. A 'NO MACRO'

error will occur if the specified Macro buffer is empty. If the optional macro buffer
number is omitted, Macro 0 is assumed.

By specifying an optional count, the same Macro will execute count number

of times, up to 255. If the optional interval is specified, the macro will execute
count number of times with interval seconds (up to 65535 seconds) between the
start of each invocation. If macro execution is longer than the interval time, the
macro will execute immediately. Only one interval timer is available. If it is already
committed to one macro and another DOMACRO command is issued with an
interval

specified, a 'TIMER IN USE' error will occur. The interval time is

determined by the internal clock.

Macros can execute other Macros but can not execute already executing Macros.

If a Macro tries to invoke itself or an already executing Macro, a 'MACRO RECURSION'
error will be generated.

Refer to the Macro command for a description of the Macro features.

SYNTAX

DOMACRO

[;] [number[,count [,interval ] ] ]

or
DO

[;] [number[,count [,interval ] ] ]

number

is a Macro buffer number, from 0 to 99. If omitted, buffer

#0 is assumed.
count

is the number of times to execute the Macro from 1 to 255.

interval

is the time interval, 1 to 65535, in seconds between the

start of successive count macro invocations.

RESPONSE

Dependent on the contents of the Macro buffer.

MODE

any

BUS STATES

Defined within the specified Macro buffer commands