Identify Serial COM devices by friendly name in Windows

版本 1.1.0.0 (1.9 KB) 作者: Benjamin Avants
Uses Windows registry information to ID Serial COM devices
865.0 次下载
更新时间 2014/4/8

查看许可证

This function scans the Windows registry in two places and associates active COM ports with their registered "Friendly Name". The function returns an N x 2 cell array where N is the number of active COM ports. The first column contains the friendly names of the devices where they exist and the second contains their COM number. If no devices with friendly names are found, devices is empty.
:
This function is not necessarily optimized but it is my solution to identifying serial devices connected by virtual COM port in Windows without having to query every device. If multiple devices with the same friendly name are connected to the computer, the output will contain both devices with their COM ports but they will be otherwise indistinguishable by this function.

引用格式

Benjamin Avants (2024). Identify Serial COM devices by friendly name in Windows (https://www.mathworks.com/matlabcentral/fileexchange/45675-identify-serial-com-devices-by-friendly-name-in-windows), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Use COM Objects in MATLAB 的更多信息

Community Treasure Hunt

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

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

4/8/2014: Added checks on registry queries to ensure SKEYs are valid. Displays an error and returns if either entry is invalid.

1.0.0.0