Get Available COM PORT

Get available COM port on your PC
7.8K Downloads
Updated 6 Dec 2005

No License

This function output a cell array with string name of each COM port available on your PC.

Example:
COM_Port = getAvailableComPort();

Enjoy.

Cite As

Daniel Lavoie (2024). Get Available COM PORT (https://www.mathworks.com/matlabcentral/fileexchange/9251-get-available-com-port), MATLAB Central File Exchange. Retrieved .

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

Inspired: CO2gui - lab control and automation

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