View License

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

» Watch video

Highlights from
Scanports function scans for available serial ports

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

3.0 | 2 ratings Rate this file 5 Downloads (last 30 days) File Size: 1.39 KB File ID: #33273 Version: 1.0
image thumbnail

Scanports function scans for available serial ports


Rob Slazas (view profile)


portlist = scanports(portlimit); Returns cell array of available serial port identifiers.

| Watch this File

File Information

portlist = scanports(portlimit);

Returns a cell array of available serial port identifiers, such as 'COM1'. By default will scan serial ports from COM1 to COM15. If the (optional) portlimit argument is passed to scanports, then it will scan from COM1 to COM[portlimit]. Displays a progress bar while scanning.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)

Amazing you are very smart, thanks for share

Comment only
31 Mar 2016 Rob Slazas

Rob Slazas (view profile)

@joycelyn wong, that's a great idea and I have done the same thing myself! Just take the guts of the scanports function here and put it in the callback function for the GUI button. The GUIDE tool really helps with this, and is pretty well documented.

Comment only
06 Mar 2016 mei mei  
27 Feb 2016 joycelyn wong

hi, i would like to use for example a [scan] button in MATLAB GUI to scan all the available ports and display it in a text box on GUI. But i couldnt manage to do it. Any ideas please? Thanks

Comment only
06 Jan 2015 Sepp Nirschl  

Contact us