3.825

3.8 | 43 ratings Rate this file 247 Downloads (last 30 days) File Size: 1.98 KB File ID: #12526
image thumbnail

MATLAB serial - code example

by Steven Kolak

 

03 Oct 2006 (Updated 01 Nov 2010)

MATLAB with serial devices - code example

| Watch this File

File Information
Description

MATLAB supports serial devices including RS-232 when using Instrument Control Toolbox.

This MATLAB code example shows you how to communicate with a serial device.

This MATLAB code example was automatically generated with a device configuration tool provided by the toolbox. Type "tmtool" to start this tool. This is a basic code example to show you how to get started using MATLAB to communicate with a serial device.

Learn more about using MATLAB with serial devices at:
http://www.mathworks.com/products/instrument/supportedio13781.html

Required Products Instrument Control Toolbox
MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (52)
11 Oct 2006 Dave Billingham  
19 Oct 2006 ER NEWB

Doesn't help me any! :(

26 Oct 2006 M. Huxby

Works for me. It is a basic example, but it shows how to use Matlab to talk to a serial device by using a tool, how the tool auto generates Matlab script for you, and how to generate a report.

03 Dec 2006 sten ipkins  
09 Jan 2007 Maksic Natasa  
22 Feb 2007 morin patrick  
12 Mar 2007 Manatchai Prommin

thankyou

03 Apr 2007 jay collins  
16 Apr 2007 rashid addamt

thank u

25 Apr 2007 Wang juan

Thangk You!

25 May 2007 bontong wasri  
01 Jun 2007 mahdi Haghzadeh  
01 Jun 2007 mahdi Haghzadeh  
01 Jun 2007 mahdi Haghzadeh  
01 Jun 2007 mahdi Haghzadeh  
02 Jun 2007 Gowri shankar J

while using Rs-232 of PLC & SCADA the micro controller programming is used , while used in m- file programming , we r using the concept of c language

05 Jun 2007 Nick Panagiotopoulos  
06 Jun 2007 Miguel Delgado  
11 Jun 2007 Cheol Min Kim  
13 Jun 2007 shivi shetty

good application

19 Jun 2007 Bouzegag younes

j'ai besoin d'un programme en matlab pour identifier une trame avec le protocole RS232
sur le oport série de mon pc;

11 Aug 2007 tarik amrouche  
14 Aug 2007 jamal mazloom  
03 Sep 2007 patryk kubi?ski  
04 Sep 2007 ALIN Kamdeu

it is good to have something to leaD US

11 Sep 2007 Jose Medina

good

22 Sep 2007 Dongwen zhang

good

31 Oct 2007 Juan García

Solicito su orientación para conseguir el serial de matlab 2006.

06 Nov 2007 ahmed abdalla  
07 Nov 2007 heri gunawan  
23 Nov 2007 alex morais

its very good.

18 Dec 2007 vab mishra  
15 Jan 2008 Teerapun Phiyakunphanid  
22 Jan 2008 156 15616

22

14 Mar 2008 dragan djokovic  
18 Mar 2008 Erick Suret

hobby

26 Mar 2008 renáta petrovková  
18 Apr 2008 shahir uddin

it will help me to modify the project

09 May 2008 en gex  
06 Jul 2008 gilson borba  
14 Jul 2008 din esh rajan

good

16 Jul 2008 effendi dodi arisandi

thank you

25 Jul 2008 fathy alsaka  
09 Oct 2008 Baba Omar

I NEED IT FOR STUDY

15 Oct 2008 kee douang  
20 Oct 2008 salim hadjsaid

Thank you,I was using:
"p=instrfind;
s1=Serial('COM1','baudrate',9600,'stopbits',1,
'Terminator','LF','timeout',Te);"
s1.ReadAsyncMode = 'continuous';
but acquisition can't go down .05s

05 Nov 2009 Tortuka  
22 Jun 2010 M. A. Hopcroft

Don't waste your time- this is just the most basic four-line example copied straight from the MATLAB help file.

12 Jul 2010 Erdal Bizkevelci  
03 Oct 2010 DHAWAL THAKKER  
18 Oct 2010 hekuran krasniqi

ooo lale e du mor burr ket program se e do profesori

11 Nov 2010 chandu kapadnis  
Please login to add a comment or rating.
Updates
26 Dec 2006

Updated description

30 Aug 2007

Updated description

01 Nov 2010

Added BSD License

Tag Activity for this File
Tag Applied By Date/Time
example Steven Kolak 22 Oct 2008 08:42:26
application Steven Kolak 22 Oct 2008 08:42:26
matlab serial Steven Kolak 22 Oct 2008 08:42:26
code example Steven Kolak 22 Oct 2008 08:42:26
matlab serial The Instrument Control Team 05 Nov 2008 15:02:44
rs232 The Instrument Control Team 05 Nov 2008 15:02:59
serial The Instrument Control Team 05 Nov 2008 15:02:59
serial Mohamed 26 Jan 2009 08:10:51
matlab serial Mohamed 26 Jan 2009 08:11:06
example Janitha Jeewantha 14 Feb 2009 10:40:04
rs232 vijay 05 May 2009 08:58:18
rs232 Marc 27 Feb 2010 07:41:26
matlab serial Marc 27 Feb 2010 07:41:46
application Javier Alvarez Rios 11 Jan 2011 05:58:19
code example Jon Johnson 02 May 2011 11:06:39
application krishna prasanth 02 May 2011 14:33:40
code example krishna prasanth 02 May 2011 14:33:48
example krishna prasanth 02 May 2011 14:33:52
matlab serial krishna prasanth 02 May 2011 14:33:55
code example asdaf asda 16 May 2011 05:14:12
application Xiangchun 12 Aug 2011 05:33:30
code example Xiangchun 12 Aug 2011 05:33:35

Contact us at files@mathworks.com