How to disable termination character while setting up serial object?
조회 수: 12 (최근 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에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!