Read log – Measurement Computing Micro 488/EX rev.2.1 User Manual
Page 134

Section 5
Command Descriptions
5.64
READ LOG
The READ LOG command is used to request a copy of the data contained within
the LOG Buffer to be sent out the serial port. The logged data is not deleted when read.
To delete the LOG Buffer, the ERASE LOG or FACTORY commands are used.
The number of characters contained within the LOG Buffer can be determined with
the LOG MEMORY command. READing the LOG buffer during macro execution will
generate a 'LOGGING ERROR'
SYNTAX
READ
LOG
RESPONSE
Data 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,"READ LOG"
Read the contents
INPUT #1,L$
Read the data
PRINT L$
Printed to the screen
Micro488/EX
Revision N.N Copyright (C) 1988 IOtech
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