3.40625

3.4 | 32 ratings Rate this file 224 downloads (last 30 days) File Size: 1.11 MB File ID: #8311

Guide to Serial Port Interfacing

by Nitin Skandan

 

18 Aug 2005 (Updated 30 Sep 2005)

No BSD License  

This article will give a detailed description of serial port interfacing in MATLAB.

Download Now | Watch this File

File Information
Description

I have enumerated my experience working with MATLAB serial port interfacing features in this article. Lot of examples are also provided. this will defenitely sevr as a self contained tutorial for all those who would like to access COM ports from MATLAB. It will get you started as well as take you all along. There will be minor bugs in the files that i have given here. Please bear with me i have tried my best to make it as good as possible with the time constraints.

Required Products Simulink
MATLAB release MATLAB 6.1 (R12.1)
Other requirements VC++ 6
Zip File Content  
Other Files
Serial IO/serreadscript.m,
Serial IO/testserwrite/testserwrite.dsw,
Serial IO/testserwrite/testserwrite.ncb,
Serial IO/testserwrite/testserwrite.plg,
Serial IO/testserwrite/testserwrite.opt,
Serial IO/testserwrite/serobject.h,
Serial IO/testserwrite/testserwrite.dsp,
Serial IO/testserwrite/serwrite_v1.cpp,
Serial IO/testserwrite/serwrite .cpp,
Serial IO/testserwrite/Release/vc60.idb,
Serial IO/testserwrite/Release/testserwrite.pch,
Serial IO/testserwrite/Release/serwrite .obj,
Serial IO/readme.txt,
Serial IO/serwritescript.m,
Serial IO/readeventscript.m,
Serial IO/servicetimer.m,
Serial IO/swrite.mdl,
Serial IO/serwrite_sfun.m,
Serial IO/sread.mdl,
Serial IO/serread_sfun.m,
Serial IO/serread/serread.dsw,
Serial IO/serread/serread.ncb,
Serial IO/serread/serread.plg,
Serial IO/serread/serread .cpp,
Serial IO/serread/serobject.h,
Serial IO/serread/serread.opt,
Serial IO/serread/serread.dsp,
Serial IO/serialconf.m,
Serial IO/Serial-IO.doc
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (39)
20 Aug 2005 thanavut chcharoenau  
16 Sep 2005 Virtoma Dasinge

Work is not a of Ur title

16 Sep 2005 Comotonov **

MATLAB all I expect

24 Sep 2005 Rajnish Sharma

Poor work. Lack inovation and not a genuin work I suspect.

29 Sep 2005 Yorck Rackow

The first guide that got me interfacing simulink to rs232 Port via customizable
M-Code S-functions. Needed minor debugging though. Way to go for dummies :o)

24 Dec 2005 purnomo wahyudi  
23 Feb 2006 Nitin Gupta

learned to incorporate serial port in simulink (provided s-function serves as a nice template)

26 Feb 2006 laith yasin  
07 Mar 2006 rajendra prasad

very good software

18 Mar 2006 vikas malik  
25 Mar 2006 salim hadj said  
24 Apr 2006 muhamaad jawad  
14 May 2006 bab shiyan

hello

27 Jul 2006 RICARDO SOLASSI

interface serial

09 Aug 2006 Rohan Khanna  
25 Aug 2006 javed dhillon  
15 Sep 2006 Sebastián Joel

It need be more explicative.

19 Sep 2006 mojtaba gheibi  
09 Nov 2006 Tim Waldron

The unzipped version of the file was many copies of the same, somewhat unreadable or corrupt m-file.
It may be my decompression program had some difficutly, but I am concerned that the zip file might be corrupt? Is this even possible?

11 Nov 2006 Duane Howard

The file is corrupt. It should be re-uploaded. Throws a CRC error on extraction.

01 Dec 2006 enb tam  
01 Dec 2006 lenk gitrey  
12 Mar 2007 jk k  
26 Mar 2007 M Jones  
08 May 2007 SRINIVAS L

i really learnt lot about serial communication from these files....

03 Jun 2007 asd sad  
20 Jul 2007 Dimitri Shvorob

Ok, this is not the blatant cut-and-pasting found in some other submissions by the author, but the diagrams and some text definitely come from
http://www.mathworks.com/access/helpdesk/help/toolbox/instrument/index.html?/access/helpdesk/help/toolbox/instrument/f14-16706.html&http://www.google.com/search?q=By+default+all+write+operations+are+synchronous&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:be:official&client=firefox-a

29 Nov 2007 Markus Rosenberg  
08 Feb 2008 shaktipada sarkar

thanks for ur support.

15 Apr 2008 reza rasekhi

how i can get signal of sensors by matlab

23 Apr 2008 tanmay bozawar

plz helpo me in interfacing a phone to com port

19 Jun 2008 Zohaib Hameed

Good work......thanks for helping

09 Jul 2008 Shantilal Zanwar

Good work, helped a lot to understand serial ports through MATLAB

29 Aug 2008 asdsad asdasd

asdas

14 Oct 2008 Hadi Aliakbarian

Nice

27 Apr 2009 Benjamin

Hello, these interfaces operate in real time?

23 Jun 2009 S Fernandes

one of the files is corrupted, i suggest you make a new zip file. here's the error log:
Extracting to "C:\Documents and Settings\..."
Use Path: no Overlay Files: yes
Extracting testserwrite.pch
bad CRC 7653968e (should be 4e2826ea)

05 Nov 2009 Tortuka  
07 Nov 2009 he jing  
Please login to add a comment or rating.
Updates
30 Sep 2005

Change in Description

Tag Activity for this File
Tag Applied By Date/Time
example Nitin Skandan 22 Oct 2008 07:56:02
application Nitin Skandan 22 Oct 2008 07:56:02
rs232 Nitin Skandan 22 Oct 2008 07:56:02
test Nitin Skandan 22 Oct 2008 07:56:02
s function driver Nitin Skandan 22 Oct 2008 07:56:02
serial port io Nitin Skandan 22 Oct 2008 07:56:02
applications Nitin Skandan 22 Oct 2008 07:56:03
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com