Serial Communication Terminator using the new configureTerminator
Show older comments
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
Richard Balogh
on 7 Apr 2022
For me, nor the
configureTerminator(s,"CR/LF")
works. I am finished with the
Unrecognized function or variable 'configureTerminator'.
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.
Jason Ha
on 16 Apr 2024
Hopefully we can get some insight on this sometime.
Giulio
on 11 Jun 2024
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
Answers (0)
Categories
Find more on Serial and USB Communication in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!