Serial Communication Using Matlab

Matlab Code to Transmit Data Through Serial Port   % Instrreset Disconnect and delete all instrument objects. instrreset; %Construct serial port object. CreateSerialPort = serial(‘COM1′); %Set Serial Port Settings set(CreateSerialPort,’BaudRate’,115200,’StopBits’,1,’FlowControl’,’none’,’Parity’,’none’,’DataBits’,8,’OutputBufferSize’,50000); %Create Buffer Size CreateSerialPort.InputBufferSize=65537; %Time out CreateSerialPort.TimeOut=60; CreateSerialPort.Terminator = ”; … Continue reading

Posted in Matlab Tips and Tracks | Tagged , |

Join the World's Largest Technical Community