Serial Communication Terminator using the new configureTerminator

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

4 Comments

For me, nor the
configureTerminator(s,"CR/LF")
works. I am finished with the
Unrecognized function or variable 'configureTerminator'.
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.
Hopefully we can get some insight on this sometime.
Have you found the solution to the error: "Unrecognized function or variable 'configureTerminator'." ?
I am getting the same error but I cannot understand how to get rid of it.
Thanks

Sign in to comment.

Answers (0)

Asked:

on 10 Jan 2020

Commented:

on 11 Jun 2024

Community Treasure Hunt

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

Start Hunting!