Difficulty using serial communication

3 ビュー (過去 30 日間)
Jason
Jason 2014 年 4 月 2 日
コメント済み: Walter Roberson 2014 年 4 月 3 日
Hello,
I'm new to using serial communication, and trying to talk to a serial device on COM3. I can connect to the device, but can't seem to read or write anything (writing does nothing, reads are welcomed with a timeout).
The documentation for the device states: Set up your control PC to meet the following communication setup: Line setup: 115200-8N1-Hardware Handshake (RTS/CTS) Program message end character: &#60LF&#62 (Line Feed, 0Ahex) Response message end characters: &#60CR&#62&#60LF&#62 (Carriage Return, 0Dhex Line Feed, 0Ahex)
I am having difficulty translating this to settings for the serial function in matlab. Does anyone have any ideas?
~ J

採用された回答

Walter Roberson
Walter Roberson 2014 年 4 月 3 日
baudrate 115200, flowcontrol hardware, BytesAvailableFcnMode terminator, terminator LF
  2 件のコメント
Jason
Jason 2014 年 4 月 3 日
Thanks that worked perfectly! Just for educational purposes, do you know of a good resource for that kind of information?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by