@zhq6
matlab端口
% 配置串口
clear all
delete(instrfindall)
instrreset()
s = serialport('COM10',115200);
configureTerminator(s,"LF")
fprintf('Serial port is open and configured.\n');
%device.Terminator
while true
data = readline(s);
disp(data);
end
% Close the serial port when done
fclose(s);