cport

The CPORT minitoolbox supplies basic functions to open, configure, read from,etc to ports.
14.3K Downloads
Updated 11 Aug 1999

View License

The CPORT minitoolbox supplies basic functions to open, configure, read from and write to serial and parallel ports under microsoft Windows 95/98 and (maybe) NT. The toolbox is implemented using a series of MEX files and M files. Requires Windows95/98/NT and Matlab 5.x

Included functions:
-------------------
cportopen - opens a serial or parallel port for use.
cportconfig - returns/modifies the configuration of a port.
cportwrite - writes characters to a port.
cportgetchar - reads characters from a port.
cportgetline - reads an entire character line from a port.
cportreset - resets a port, retrieves error codes and strings
and flushes its buffers.
cportclose - closes an open port.


Tested on Windows 95 under MATLAB 5.2

Cite As

Eyal Doron (2024). cport (https://www.mathworks.com/matlabcentral/fileexchange/161-cport), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Instrument Control Toolbox Supported Hardware in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0