File Exchange

image thumbnail

Simple GUI for serial port communication

version 1.1.0.1 (14.2 KB) by Roger Yeh
Set up a serial connection to send and receive messages.

38 Downloads

Updated 01 Sep 2016

View License

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.]

Cite As

Roger Yeh (2020). Simple GUI for serial port communication (https://www.mathworks.com/matlabcentral/fileexchange/26371-simple-gui-for-serial-port-communication), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (33)

ben wight

Mihai-Razvan Nagit

Could somebody help me with the zip archive, please? From here, it is corrupted. Thanks!

Brent Pankey

empty license file, no .m please fix

Daniel Melendrez

xizhen wang

Denys

Zip file corrupted.

erexx xxere

dead ... no exe

Ayyaz

Is possibe to use this serial Gui for Linux? I have tried for Windows, it works good but i want to try for linux or ubunto, i have not much experience with linux. I want to have serial Gui in Matlab

Jeff King

Nothing but a single license.txt file that is 0kb.

maozhengxiang

Camila Lopez

Thx, I created many GUI's using your code as base.I only deleted the 'try-catch' sentences. Matlab 20015b

Luis Fernandez

Sumin

Darkequlizer

Dr.Vijay Dudhal

Safdar Munir

Safdar Munir

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

jimavd

Very useful, thank you for sharing.

OUHMIZ_D_Mourad

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

Mahesh

Shaohui Yong

Great job. Very helpful.

hugo

Nice work.. thanks

Yazdan Bajelan

y.bajelan@yahoo.com

Gerard

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?

jebnouni jebnouni

jebnouni jebnouni

Lei

Ratatosk

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

Ketan Tang

Do you have any idea how to do USB communication?

taner

Parth Shah

nice

yepiz

Hi

annna

Nice work......

Updates

1.1.0.1

Updated license

1.1.0.0

Added screenshot. Changed the note on compatible versions.

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: MATLAB AND ARDUINO SERIAL COMMUNICATION