Rank: 1800 based on 43 downloads (last 30 days) and 1 file submitted
photo

Daniel Lavoie

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Daniel
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Dec 2005 Get Available COM PORT Get available COM port on your PC Author: Daniel Lavoie rs232, available, com port, db9, com to usb 43 3
  • 4.33333
4.3 | 3 ratings
Comments and Ratings on Daniel's Files View all
Updated File Comment by Comments Rating
10 May 2009 Get Available COM PORT Get available COM port on your PC Author: Daniel Lavoie Akien, Geoffrey

Very handy utility, but unfortunately the way MATLAB finds these serial ports does not take into account if other programs are using them - although fopen will of course prevent you from using that port. Also, when I incorporated it into a GUI, it did not stand up to being run a second time - it could not access the error message which instead replies with a 0x1 structure.

23 Jan 2009 Get Available COM PORT Get available COM port on your PC Author: Daniel Lavoie Antila, Marko

Nice work Daniel - clever to catch the error message. I was thinking this myself but did not have time to work it out.

I think, however that the code could be further improved by inserting these two lines after the first "end":
fclose(s);
delete(s);

This removes the unnecessary handle and does not confuse the future operations with the serial port.

04 Jan 2006 Get Available COM PORT Get available COM port on your PC Author: Daniel Lavoie granstroem, anders

Shows available COM ports. When terminating a matlab program with CTRL-C. Windows 2000 thinks that the com port is occupied. Nice to se this in matlab. Can be seen by doing "mode" command at the command promt in windows as well.

Top Tags Applied by Daniel
available, com port, db9, rs232
Files Tagged by Daniel
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Dec 2005 Get Available COM PORT Get available COM port on your PC Author: Daniel Lavoie rs232, available, com port, db9, com to usb 43 3
  • 4.33333
4.3 | 3 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com