5.0

5.0 | 2 ratings Rate this file 122 Downloads (last 30 days) File Size: 14.24 KB File ID: #26371
image thumbnail

Simple GUI for serial port communication

by Roger Yeh

 

13 Jan 2010 (Updated 27 Jan 2010)

Set up a serial connection to send and receive messages.

| Watch this File

File Information
Description

This simple graphical user interface (GUI) allows you to quickly set up a serial port for simple communication.

There are two versions - Serial_GUI and Serial_GUI_noICT. Serial_GUI requires the Instrument Control Toolbox because it calls the INSTRHWINFO function to check for all available serial ports and automatically populates the upper right-hand corner listbox. Serial_GUI_noICT generates a list of serial ports (COM1 through COM12). These ports may or may not be available. Furthermore, there may be availabe ports not listed.

The port and baud rate can be specified, but only when disconnected. If connected, disconnect the serial connection first, make the changes, and re-connect.

[Note: This example was created in MATLAB R2009b, but has been tested to work on releases back to R2007b. May work on earlier releases as well.]

Required Products Instrument Control Toolbox
MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
25 Apr 2011 annna

Nice work......

05 Jul 2011 yepiz

Hi

15 Oct 2011 Parth Shah

nice

01 May 2012 taner  
02 Jun 2012 Ketan Tang

Do you have any idea how to do USB communication?

Please login to add a comment or rating.
Updates
27 Jan 2010

Added screenshot. Changed the note on compatible versions.

Tag Activity for this File
Tag Applied By Date/Time
serial Roger Yeh 27 Jan 2010 12:34:58
serial communication Roger Yeh 27 Jan 2010 12:34:58
serial port Roger Yeh 27 Jan 2010 12:34:58
rs232 Roger Yeh 27 Jan 2010 12:34:58
rs 232 Roger Yeh 27 Jan 2010 12:34:58
rs422 Roger Yeh 27 Jan 2010 12:34:58
rs 422 Roger Yeh 27 Jan 2010 12:34:58
gui Roger Yeh 27 Jan 2010 12:34:58
simple gui Roger Yeh 27 Jan 2010 12:34:58
rs 232 UTM Hanafiah 12 May 2010 00:06:11
serial communication teguh 08 Jun 2011 01:09:27
gui Eeshaanee 09 Jul 2011 05:05:31
gui Ali 12 Jul 2011 01:07:02
simple gui Ali 12 Jul 2011 09:14:58
gui ofir blatt 09 Oct 2011 05:23:37
gui taner 01 May 2012 05:19:30
gui Relebogile Matjila 31 May 2012 13:31:10

Contact us at files@mathworks.com