Serial Port not detected

Hi, I am using a usb dongle to communicate with my robocar. Hence, I write the the code as follow: code:
device=instrfind;
but the answer I obtained is empty array. May I know what is the problem? By the way, I can communicate my robocar with hyper terminal. Thanks

7 comentarios

Shawn Chang
Shawn Chang el 21 de Jun. de 2012
The COM port is available at device manager which is COM6. But,Matlab unable to detect it even though i try to restart matlab and detect it again. Yet, there's still no solution. I'm doing this for my final year project and i need help urgently. Thanks
Shawn Chang
Shawn Chang el 21 de Jun. de 2012
May I know is the Virtual USB Serial Ports can be detected in matlab? Since it is shown in list of port in device manager. Thanks
Walter Roberson
Walter Roberson el 21 de Jun. de 2012
In theory they should show up, provided that they were turned on and connected at the time that MATLAB was started, and provided that the vendor-provided driver had previously been installed.
Shawn Chang
Shawn Chang el 21 de Jun. de 2012
But, for my situation, matlab didn't detected my virtual usb serial port. Is there any solution, so that matlab can recognize the port?
Walter Roberson
Walter Roberson el 21 de Jun. de 2012
Sorry, I do not know. I would suggest opening a case with Technical Support.
Shawn Chang
Shawn Chang el 21 de Jun. de 2012
Anyhow, thanks for your replied and information. I will try to check is there any solution for this.
Shawn Chang
Shawn Chang el 21 de Jun. de 2012
http://www.mathworks.com/matlabcentral/answers/1099-does-serial-detect-a-virtual-com-port
By referring to this thread, i obtained the following result:
s=instrhwinfo('Serial')
s =
AvailableSerialPorts: {2x1 cell}
JarFileVersion: 'Version 2.9.0'
ObjectConstructorName: {2x1 cell}
SerialPorts: {2x1 cell}
s.AvailableSerialPorts
ans =
'COM5'
'COM6'
This should be the solution for my problem.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Etiquetas

Preguntada:

el 21 de Jun. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by