The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: rs-232 and Terminator character
Replies: 1   Last Post: Jun 23, 2009 9:33 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2
Registered: 6/22/09
rs-232 and Terminator character
Posted: Jun 22, 2009 5:17 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I am trying to communicate via the serial port with an device. The device uses a communication protocol in which each packet of data ends with a checksum byte. When I try to read data from the device with the fread command, Matlab does not stop reading until timeout occurs. I assumed it was waiting for a terminator character, and set terminator to empty, but matlab still doesn't know when the data is finished being sent. Is there a way to program matlab to look for the checksum byte? Should I just reduce the timeout duration and ignore the timeout warnings?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.