5 event driven macro execution – Measurement Computing Micro 488/EX rev.2.1 User Manual
Page 55

Section 4
General Programming
4.13
Even though the data in the LOG buffer has been read, it has not been
deleted. If logging continues, the new data will be appended to the old. You
can read this data as many times as you want.
To delete the data in the LOG buffer type the following…
ERASE LOG
LOG MEMORY
The Micro488/EX will respond with …
0
4.4.5 Event Driven MACRO Execution
The ON
automatically execute a MACRO when one or more of the specified events
occur. The events are polled between commands and when one of the events
is detected as true, its assigned MACRO is executed. Once executed, the
event is disabled from further execution and must be re-enabled with
another ON
There are two types of events, level sensitive and edge sensitive. Level
sensitive events, such as SRQ, will cause MACRO execution every time they
are enabled while the event condition persists. Usually, some action must be
taken (eg SPOLL) to clear the condition prior to re-issuing the ON
are cleared when the MACRO executes.
Regardless of the event sensitivity, the ON
command must be re-sent after the MACRO executes to re-activate the event
condition. The optional events include…
SRQ
This event is level sensitive. If the condition exists at the
time the ON SRQ DOMACRO command is issued, the
Micro488/EX will execute the assigned MACRO
immediately.