フィルターのクリア

Matlab xPC target USB?

1 回表示 (過去 30 日間)
Robert
Robert 2012 年 5 月 24 日
Hello folks,
If I am attempting to communicate with an external device such as a GPS (driver installed) and it shows up as a COM port on my computer even though it is hooked up via USB on the xPC target, can I still use the RS232 library from xPC target to read/write to the device?
Thank you, Rob

採用された回答

Walter Roberson
Walter Roberson 2012 年 5 月 24 日
USB virtual serial ports require a device driver in order to communicated with as serial ports. If your xPC includes the appropriate device driver then you can use the RS232 library.
I know that some USB support is being offered on xPC now, but I have not examined the documentation to find out whether USB serial ports are one of them.
  6 件のコメント
Robert
Robert 2012 年 5 月 25 日
You are correct, I overlooked this fact. It looks like a virtual com port via USB is out of the question at the moment since I have little time to create a driver so I will resort to sending my GPS coordinates to an external micro-controller which will then be connected via RS232 to the target PC.
Walter Roberson
Walter Roberson 2012 年 5 月 25 日
Sometimes you gotta do what ya gotta do.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by