beautypg.com

Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 112

background image

Section 5

Command Descriptions

5.42

LOG MEMORY

The LOG MEMORY command is used to inquire the number of characters

contained within the LOG Buffer. After an ERASE LOG or FACTORY command, the
LOG

Buffer will contain zero [0] characters.

SYNTAX

LOG

MEMORY

RESPONSE

Number of characters contained within the Log Buffer.

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