Serial Communication Terminator using the new configureTerminator

20 views (last 30 days)
Hello, before 2019b, the method to open serial ports with "serial" allowed the terminator to be set to nothing i.e. ''.
set(s,'Terminator,'')
However, with the new recommended serialport and the associated configureTerminator method, it appears not possible to leave out the terminator.
configureTerminator(s,'')
This comes up with an error as the value can only be CR, LR CR/LF or any ascii code.
Does this mean its not possible to have "No" terminators?
Thanks
Jason
  3 Comments
Sergio Roche
Sergio Roche on 27 Jul 2022
I find it amazing that such details are so undocumented, especially that we are pushed into this new libraries due to the deprecation of the old libraries. I am struggling with the readbinblock function in a similar way... some documents lead you to understand that the readbinblock function will read until the whole block is read or a timeout occurs, but I can tell that the readbinblock function in MATLAB r2021a keeps stopping every time it hits the code 10, which is the equivalent to line feed. This happens regardless of what setting of Terminator I use... it always stops at code 10.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!