Serial Port not detected

조회 수: 4 (최근 30일)
Shawn Chang
Shawn Chang 2012년 6월 21일
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
Shawn Chang
Shawn Chang 2012년 6월 21일
Anyhow, thanks for your replied and information. I will try to check is there any solution for this.
Shawn Chang
Shawn Chang 2012년 6월 21일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by