Comment – Measurement Computing Micro 488/EX rev.2.1 User Manual
Page 88

Section 5
Command Descriptions
5.18
COMMENT
The COMMENT command is provided to allow the user to place comment lines in
a Macro buffer. The COMMENT string is enclosed in either apostrophes (') or quotation
marks ("). When the Macro is executed, the COMMENT string is sent to the serial host,
or if LOG ON is in effect it is sent to the LOG Buffer, appended with the serial output
terminators. The serial output terminators may be suppressed by including a back-slash
[\] as the last character of the COMMENT string.
SYNTAX
COMMENT
[;] 'data'
or
COM
[;] 'data'
'data'
is an ASCII string delimited by apostrophes or quotation
marks.
RESPONSE
data
is returned to the serial host
MODE Any
BUS STATES
None
EXAMPLES
PRINT #1,"COMMENT 'This is a test comment'"
INPUT #1, C$
Read the comment string
PRINT C$
Print it to the screen
This is a test comment
PRINT #1,"COMMENT 'Available Memory = \'"
PRINT #1,"MEMORY"
INPUT #1, C$
Read the comment string with suppressed
serial output terminators and appended
memory value
PRINT C$
Print it to the screen
Available Memory = 29782