seriallist

(Not recommended) List of serial ports connected to your system

seriallist is not recommended. Use serialportlist instead. See Compatibility Considerations.

Description

example

seriallist returns a list of all serial ports on a system. The list includes virtual serial ports provided by USB-to-serial devices and Bluetooth Serial Port Profile devices. This provides a list of the serial ports that you have access to on your computer and could use for serial port communication.

Examples

collapse all

The seriallist function displays a list of all serial ports on a system.

Display available serial ports.

seriallist
ans = 

  1x2 string array

  "COM1"    "COM3"

You can now create a serial object and communicate over the serial port.

Compatibility Considerations

expand all

Not recommended starting in R2019b

See Also

Functions

Introduced in R2017a