bugGNU Octave - Bugs: bug #55212, [octave forge] (instrument...

 
 

bug #55212: [octave forge] (instrument control) unhelpful error message if COM port already open

Submitter:  None
Submitted:  Wed 12 Dec 2018 01:56:10 PM UTC
   
 
Category:  Octave Package Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Arnaud Miege Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 4.4.1
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 18 Dec 2018 02:09:20 PM UTC, comment #1: 

It is currently printing out the error message that windows supplies to it using the windows GetLastError and FormatMessage.


If there is a better way of getting the error that occuring I will take a look.

John Donoghue <lostbard>
Group Member
Wed 12 Dec 2018 01:56:10 PM UTC, original submission:  

When trying to create serial object in Octave, I got the following error message:


>> s=serial("\\\\.\\COM15",1200)

error: serial: Error opening the interface: No such file or directory


Nothing I tried would work and I simply couldn't connect to the piece hardware on the serial port. Until I realised that the port was actually already open in a PuTTY window.

It would be great if the error message was a lot more helpful, with something like "Unable to create serial object, COM port already open." or similar. Not sure if it's possible to detect whether a port is already open when attempting to create the serial object.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-07 mtmiller Severity3 - Normal 1 - Wish
        SummaryUnhelpful error message if COM port already open (Instrument control package) [octave forge] (instrument control) unhelpful error message if COM port already open

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code