beautypg.com

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

Page 105

background image

Section 5

Command Descriptions

5.35

ERASE LOG

The ERASE LOG command empties the non-volatile LOG buffer of any data that it

contained. The memory occupied by the LOG buffer is returned to the USER heap.

SYNTAX

ERASE

LOG

RESPONSE

None

MODE Any

BUS STATES

None

EXAMPLES

PRINT#1,"MACRO 1"

Define a macro

PRINT#1,"HELLO"
PRINT#1,"ENDM"
PRINT#1,"LOG ON"

Enable logging

PRINT#1,"DOMACRO 1"

Execute the macro
The response is logged

PRINT#1,"LOG MEMORY"
INPUT #1,L

Read the memory used

PRINT L

Printed to the screen

54

Number of bytes in buffer

PRINT#1,"ERASE LOG"

Erase the log buffer

PRINT#1,"LOG MEMORY"
INPUT #1,L

Read the memory used

PRINT L

Printed to the screen

0

0 bytes in buffer