You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Although MATLAB is supposed to support both writing and reading data from the serial port, reading data seems to either produce no result, generate an error, or crash MATLAB. To remedy the situation SerialIO() has been written. This function will allow you to set/get vectors of data from the serial port buffer.
To help, type "SerialIO('help');
s = SerialIO('open','com2',19200);
SerialIO('write',x,3);
y=SerialIO('read',6);
SerialIO('close');
Note: to compile "mex SerialIO.cpp"
Cite As
Lorgio Teodovich (2026). SerialIO mex (https://www.mathworks.com/matlabcentral/fileexchange/25478-serialio-mex), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.3.0.0 (5.65 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
