View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Simple GUI for serial port communication

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.5
4.5 | 11 ratings Rate this file 64 Downloads (last 30 days) File Size: 14.2 KB File ID: #26371 Version: 1.1
image thumbnail

Simple GUI for serial port communication

by

Roger Yeh (view profile)

 

13 Jan 2010 (Updated )

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 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (18)
14 Jul 2016 Safdar Munir  
14 Jul 2016 Safdar Munir

Hy Roger
can you help me i want to send my text file char by char using serial communcaition

Comment only
13 Apr 2016 jimavd

jimavd (view profile)

Very useful, thank you for sharing.

31 Mar 2016 OUHMIZ_D_Mourad

hi i wanted to display a voltage value in interface GUI
it's like a PC voltmeter
thank you

Comment only
18 Feb 2016 Mahesh

Mahesh (view profile)

 
16 Jul 2015 Shaohui Yong

Great job. Very helpful.

23 Nov 2014 hugo

hugo (view profile)

Nice work.. thanks

14 Jul 2013 Yazdan Bajelan

y.bajelan@yahoo.com

Comment only
07 May 2013 Gerard

Gerard (view profile)

Hey, this works awesome and it's been helping me a lot, but I want to receive data continuously after pressing the receive button instead of only receiving one line of data each time I press the button. I've been trying while loops and for loops but to no avail. Do you have any suggestions on how I might do this?

27 Apr 2013 jebnouni jebnouni  
27 Apr 2013 jebnouni jebnouni  
19 Nov 2012 Lei

Lei (view profile)

 
10 Nov 2012 Ratatosk

great job, but how do you differ from the types of data? like single bit or 8-bit, decimal or hex?

Comment only
02 Jun 2012 Ketan Tang

Do you have any idea how to do USB communication?

Comment only
01 May 2012 taner

taner (view profile)

 
15 Oct 2011 Parth Shah

nice

05 Jul 2011 yepiz

yepiz (view profile)

Hi

Comment only
25 Apr 2011 annna

annna (view profile)

Nice work......

Comment only
Updates
27 Jan 2010 1.1

Added screenshot. Changed the note on compatible versions.

Contact us