How to disable termination character while setting up serial object?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abhilash Sukumari
am 26 Jul. 2019
Kommentiert: Guillaume
am 29 Jul. 2019
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 Kommentare
Akzeptierte Antwort
Guillaume
am 26 Jul. 2019
The matlab documentation provides all property values except that on how to disable the termination character.
2 Kommentare
Guillaume
am 29 Jul. 2019
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!