How can I distinguish differents COM?

In my code I use the following funciont:
serialInfo = instrhwinfo('serial')
It get the availables COM PORT of matlab, however I want to know for further details like the Name of it. This is all because I am doing an algorithms to detect and connect a COM of a device and I have to know some parameters to use know which of the COM PORT availables I want to use.
The output of the funcion is my pc is:
serialInfo =
AvailableSerialPorts: {'COM14'}
JarFileVersion: 'Version 2.8.0'
ObjectConstructorName: {'serial('COM14');'}
SerialPorts: {'COM14'}
But I want to know more details about the COM14. In this case, there's only one COM PORT avaibable, but the problem is if there are more than one.

2 Kommentare

Walter Roberson
Walter Roberson am 20 Mär. 2013
What would the "name" of a COM port be in your situation ?
Skent
Skent am 21 Mär. 2013
Bearbeitet: Skent am 21 Mär. 2013
This is what appears on the Painel Control: Prolific USB-to-Serial Comm Port (COM14). I was worndering if I can get the name of the adapter which is use in this device, the "Prolific USB-to-Serial Comm Port".

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 20 Mär. 2013

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by