beautypg.com

Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 51

background image

Section 4

General Programming

4.9

If it is desired to execute a MACRO more than the allowed 255 times,

another MACRO can be created to invoke the first. For example…
MACRO 2

DOMACRO 1,200

DOMACRO 1,200

DOMACRO 1,200

ENDM

DOMACRO 2

will execute MACRO 1 a total of 600 (200+200+200) times while…

DOMACRO 2,100

will execute MACRO 1 a total of 60000 (100*[200+200+200]) times.

An additional time interval specifier, in seconds, can be included with

the number of times specifier, to set a precise delay from the start of one
execution to the start of the next. Only one interval timer is provided.
Having two MACROs trying to use it at the same time will cause a TIMER
IN

USE error. Type the following…

MACRO 1

TIME

ENDM

MACRO 2

SET TIME 12:00 PM

DOMACRO 1,3,5

TIME

ENDM

DOMACRO 2