How to disable termination character while setting up serial object?
4 次查看(过去 30 天)
显示 更早的评论
I have to establish with a serial communication device that uses the following properties:
baud = 115200, parity = none, timeout = 500ms, termination char = None, stopbits = 1.
The matlab documentation provides all property values except that on how to disable the termination character.
Any ideas?
0 个评论
采纳的回答
Guillaume
2019-7-26
The matlab documentation provides all property values except that on how to disable the termination character.
2 个评论
Guillaume
2019-7-29
s.Terminator = '';
%or
s.Terminator = [];
seems to work fine in that it does not throw an error even if you write to the serial port. I don't have a device connected to my serial port to check that it actually does what you want.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!