octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59581] [octave forge] (instrument-control) se


From: Jens Bongartz
Subject: [Octave-bug-tracker] [bug #59581] [octave forge] (instrument-control) serialport error after second call
Date: Tue, 1 Dec 2020 16:53:55 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.47

Follow-up Comment #3, bug #59581 (project octave):

Hi John, 
thanks for your reply. I tried to condense the code to a point where the error
message is reproducible. I suppose I found it.

>> pkg load instrument-control
>> s1 = serialport("COM9");
>> clear s1
>> s1 = serialport("COM9");
>> clear s1
>> s1 = serialport("COM9");
>> bytesavailable = get(s1,"numbytesavailable")
bytesavailable = 0
>> clear s1
>> s1 = serialport("COM9");
error: serialport: Error opening the interface: No such file or directory

I can open and close the serialport without problems until I request
"numbytesavailable". After this the serialport seems not to be released
properly. I found this on Win 8.1 and OSX. Can you confirm this behavior on
your side?

Best
Jens

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59581>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]