function open_comport(port)

global comport;
% comport = serial('COM3','BaudRate',115200,'Terminator','CR');
comport = serial(port,'BaudRate',115200,'Terminator','CR','Name', port);
fopen(comport);
%status = comport.Status;

end %END
