enumSerial (Windows)

版本 1.0.0.0 (5.8 KB) 作者: Jerome Briot
Enumerate serial ports on Windows systems (Win32 API, WMIC, registry)
90.0 次下载
更新时间 2016/5/25

查看许可证

This is a collection of three functions that return the available serial ports on a Windows system.
- enumSerialReg parses the Windows registry
- enumSerialWmic calls the WMIC tool (Windows Management Instrumentation Command-line)
- enumSerialWin32 is based on the Win32 API

---------------
Exemple:

>> [com, names] = enumSerialWmic

com =

'COM22' 'COM24'

names =

'Silicon Labs CP210x USB to UART Bridge (COM22)' 'USB Serial Port (COM24)'

---------------
This contribution is inspired by http://stackoverflow.com/a/1394301 and http://www.naughter.com/enumser.html

引用格式

Jerome Briot (2025). enumSerial (Windows) (https://www.mathworks.com/matlabcentral/fileexchange/57333-enumserial-windows), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0