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 Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by