Instrument-control Toolkit - @octave_serial/srl_timeout
- Loadable Function: srl_timeout
(serial, timeout)
- Loadable Function:
t =
srl_timeout(serial)
-
Set new or get existing serial interface timeout parameter used for srl_read() requests. The timeout value is specified in tenths of a second.
Inputs
serial - instance of octave_serial class.
timeout - srl_read() timeout value in tenths of a second. A value of -1 means a blocking call. Maximum value of 255 (i.e. 25.5 seconds).
Outputs
If timeout parameter is omitted, the srl_timeout() shall return current timeout value as the result t.
This function is obsolete. Use get and set method instead.