Code covered by the BSD License
Highlights from
cport
-
cportclose;
function stat=cportclose(H) closes an open serial or parallel port
-
cportconfig;
function stat=cportconfig(H,Name,Value,Name,Value,Name,Value...)
-
cportgetchar;
function Params[ch,err]=cportstate(H,nchar) retrieves characters from a
-
cportopen;
function H=cportopen(Port) opens a serial or parallel communication port
-
cportpurge;
function stat=cportpurge(H) discards all characters from the output or
-
cportreset;
function [stat,ErrStr]=cportreset(H) resets a previously opened communications
-
cportstate;
function Params=cportstate(H) retrieves the configuration and timeout
-
cportwrite;
function nW=cportwrite(H,Data,EOL) sends data to a previously opened
-
s=cportgetline(H,nMax,EOL,Tim...
function s=cportgetline(H,nMax,EOL,Timeout) reads in one line of character
-
Contents.m
-
View all files
cport
by Eyal Doron
11 Aug 1999
The CPORT minitoolbox supplies basic functions to open, configure, read from,etc to ports.
|
Watch this File
|
| File Information |
| Description |
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 |
| Required Products |
Instrument Control Toolbox
|
| MATLAB release |
MATLAB 5.2 (R10)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (21) |
| 21 Sep 2001 |
Matias Bustos Santa Maria
|
|
|
| 21 May 2002 |
Amin Habaibeh
|
|
|
| 14 Apr 2003 |
bao pinglei
|
|
|
| 27 Apr 2003 |
eng md
|
|
|
| 25 Jun 2003 |
Stepan Sutula
|
|
|
| 31 Oct 2003 |
wang guodong
|
|
|
| 17 Nov 2003 |
James Hough
|
|
|
| 30 Mar 2004 |
Tjhang Suwandi
|
|
|
| 13 May 2004 |
Stas Maximov
|
|
|
| 18 Jun 2004 |
Bob Brenson
|
|
|
| 28 Oct 2005 |
Rarmundo CastaƱo
|
|
|
| 21 Dec 2005 |
Wilson Nathan
|
|
|
| 27 Dec 2005 |
karthik rao
|
|
|
| 01 Jan 2006 |
umer bashir
|
|
|
| 31 Jan 2006 |
SAMUEL DIEUDONNE YEBEL
|
|
|
| 18 Apr 2006 |
Heron Molina-Lozano
|
|
|
| 10 Mar 2007 |
Jason Lu
|
|
|
| 09 Apr 2007 |
jorge cruz mancilla
|
|
|
| 03 Oct 2007 |
Simon Child
|
|
|
| 28 Mar 2008 |
Diego Diego
|
|
|
| 27 Jan 2010 |
Jimmy
|
|
|
|
Contact us at files@mathworks.com