[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octa
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error |
Date: |
Sun, 01 Mar 2015 05:15:31 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?44393>
Summary: Instrument Control Package on MXE Octave "bad file
descriptor" error
Project: GNU Octave
Submitted by: None
Submitted on: Sun 01 Mar 2015 05:15:30 AM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.2
Operating System: Microsoft Windows
_______________________________________________________
Details:
I am running MXE Octave build 3.8.2-5 installed from http://mxeoctave.osuv.de/
on an Windows 7 64 bit machine. Specifically I am using the portable version.
I have installed the instrument control package 0.2.1
When running sample code for instrument control toolbox I get the following
error, "error: serial: Error opening the interface: Bad file descriptor"
I can see the serial ports in the device manager, but it doesn't seem to
recognize them.
%Code taken from http://wiki.octave.org/Instrument_control_package#Serial
close all
clear all
clc
if (exist("serial") == 3)
disp("Serial: Supported")
else
disp("Serial: Unsupported")
endif
# Open default serial port ttyUSB0 in default configuration of 115200, 8-N-1
%s0 = serial()
# Opens serial port ttyUSB1 with baudrate of 115200 (config defaults to
8-N-1)
%s1 = serial("/dev/ttyUSB1", 115200)
s1 = serial("COM1", 115200)
# Flush input and output buffers
srl_flush(s1);
# Blocking write call, currently only accepts strings
srl_write(s1, "Hello world!")
# Blocking read call, returns uint8 array of exactly 12 bytes read
data = srl_read(s1, 12)
# Convert uint8 array to string,
char(data)
%Output of above code is copied below
%Serial: Supported
%error: serial: Error opening the interface: Bad file descriptor
%
%
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 01 Mar 2015 05:15:30 AM UTC Name: serial_test.m Size: 1kB By:
None
<http://savannah.gnu.org/bugs/download.php?file_id=33215>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44393>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error,
anonymous <=
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, John Donoghue, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, John Donoghue, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, anonymous, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, John Donoghue, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, anonymous, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, John Donoghue, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, anonymous, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, John Donoghue, 2015/03/01
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, anonymous, 2015/03/02
- [Octave-bug-tracker] [bug #44393] Instrument Control Package on MXE Octave "bad file descriptor" error, John Donoghue, 2015/03/02