Measurement Computing Serial488/4 User Manual
Page 69

Section 3
Command Descriptions
3.30
Memory Query
Z?
The Memory Query command returns the number of characters w hich may be
written to the serial ports w ithout causing a 'low memory' condition. This command
may be used to for determining how many more characters can be safely written to the
Serial488/4 before handshaking will attempt to stop serial input data because of a 'low
memory' condition.
Z?
Return the number of characters which may be written to the serial ports
Example 1: Find the amount of free memory remaining in the Serial488/4 using dual
primary addressing mode.
PRINT#1,"OUTPUT08;Z?"
request amount of free memory
PRINT#1,"ENTER08"
INPUT#2,A$
read the response
PRINT A$
display shows Z23456
Example 2: Find the amount of free memory remaining in the Serial488/4 using
secondary addressing mode.
PRINT#1,"OUTPUT0800;Z?"
request amount of free memory
PRINT#1,"ENTER0800"
INPUT#2,A$
read the response
PRINT A$
display shows Z23456