Function File: list = serialportlist ()
Function File: list = serialportlist ("all")
Function File: list = serialportlist ("available")

Returns a list of all serial ports detected in the system.

Inputs

’all’ - show all serial ports (same as providing no arguments) ’available’ - show only serial ports that are available for use

Outputs

list is a string cell array of serial ports names detected in the system.

See also: instrhwinfo("serialport").

Package: instrument-control