Scanports function scans for available serial ports

portlist = scanports(portlimit); Returns cell array of available serial port identifiers.
799 Downloads
Updated 14 Oct 2011

View License

portlist = scanports(portlimit);

Returns a cell array of available serial port identifiers, such as 'COM1'. By default will scan serial ports from COM1 to COM15. If the (optional) portlimit argument is passed to scanports, then it will scan from COM1 to COM[portlimit]. Displays a progress bar while scanning.

Cite As

Rob Slazas (2024). Scanports function scans for available serial ports (https://www.mathworks.com/matlabcentral/fileexchange/33273-scanports-function-scans-for-available-serial-ports), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Use COM Objects in MATLAB in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0