Scan for available serial com ports
Version 1.0.0.0 (1,35 KB) von
cr
A handy utility function thats missing in base Matlab to scan for available Serial ports.
The function uses a simple workaround (as there is no documented way) to first scan for all available ports and returns only those which are ready for use. As the procedure involves testing each port individually it takes a few seconds (about the same a Terminal/Hyperterminal takes on port rescan).
Request in the comments section for any additional features like error message encountered for each port, etc and I'll consider revising.
Cheers,
cK.
Zitieren als
cr (2026). Scan for available serial com ports (https://de.mathworks.com/matlabcentral/fileexchange/37872-scan-for-available-serial-com-ports), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2012a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Communications Toolbox finden Sie in Help Center und MATLAB Answers
Tags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 |
