Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

seriallist

List of serial ports connected to your system

Syntax

seriallist

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 = 

  1×2 string array

  "COM1"    "COM3"

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

Introduced in R2017a

Was this topic helpful?