Flush fn – Measurement Computing Serial488/4 User Manual
Page 46

Section 3
Command Descriptions
3.7
Flush
Fn
The Flush command is used to discard serial data for a selected port. The Port
Select command (Pn) is used to select the serial port regardless of addressing mode in
use. Dat a waiting to be read over the IEEE b us, transmitted out the serial port, or
both, may be flushed.
F0
Flush serial input data.
F1
Flush serial output data.
F2
Flush both serial input and output data.
F?
Return last F command executed.
Example 1: Flush serial input data for port 1 using dual primary addressing mode.
PRINT#1,"CLEAR08"
reset the Serial488/4
PRINT#1,"OUTPUT08;P1X"
select port 1 as the current port
PRINT#1,"OUTPUT08;F0X"
flush serial input data
Example 2: Flush serial output data for port 2 using secondary addressing mode.
PRINT#1,"CLEAR0800"
reset the Serial488/4
PRINT#1,"OUTPUT0800;P2X"
select port 2 as the current port
PRINT#1,"OUTPUT0800;f1X"
flush serial output data