Instrument-control Toolkit - @octave_serial/srl_flush
- Loadable Function: srl_flush
(serial, [q])
-
Flush the pending input/output.
Inputs
serial - instance of octave_serial class.
q - queue selector of type Integer. Supported values:
- 0
flush untransmitted output
- 1
flush pending input
- 2
flush both pending input and untransmitted output.
If q parameter is omitted, the srl_flush() shall flush both, input and output buffers.
Outputs
None