beautypg.com

3 debugging a macro – Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 53

background image

Section 4

General Programming

4.11

4.4.3 Debugging a MACRO

The TRACE ON command allows the embedded macro commands

within the macro buffer to be echoed out the serial port to the host computer
as the Macro is executed. This allows trace debugging during Macro
execution. This feature is disabled with the TRACE OFF command.

Type…
TRACE ON

DOMACRO 2

The Micro488/EX will respond with…
SET TIME 12:00 PM
DOMACRO 1,3,5
COUNT
3
TIME
12:00:00
ENDM01

< 5 Second Delay>

COUNT
2
TIME
12:00:05
ENDM01

< 5 Second Delay>

COUNT
1
TIME
12:00:10
ENDM01
TIME
12:00:10
ENDM02

Type the following to disable the TRACE feature…

TRACE OFF