%% Set Different Terminator for Read and Write Communication
% Create a connection to a serial port device using serialport. You can also connect to a Bluetooth device using bluetooth or a TCP/IP client using tcpclient.

dev = serialport("COM3",9600);

% Set the read terminator to "CR" and the write terminator to 10.

configureTerminator(dev,"CR",10)

% Confirm the setting.

dev.Terminator

%
% Copyright 2020 The MathWorks, Inc.