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.]
can you help me i want to send my text file char by char using serial communcaition
Very useful, thank you for sharing.
hi i wanted to display a voltage value in interface GUI
it's like a PC voltmeter
Great job. Very helpful.
Nice work.. thanks
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?
great job, but how do you differ from the types of data? like single bit or 8-bit, decimal or hex?
Do you have any idea how to do USB communication?
Added screenshot. Changed the note on compatible versions.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.