Menu

#18 gpib_config error: Innappropriate ioctl for device

v1.0 (example)
open
nobody
2
2018-08-25
2018-08-25
No

Hello. My machine used to be able to connect to my Agilent 34970A device through GPIB_USB_HS, but it updated (through some corporate machine forced update..) and I have been having some issues getting them both to reconnect.

I'm running the 4.16.0-3rodete1-amd64 kernel

I've installed linux-gpib-4.1.0, using the commands listed in the INSTALL file:
./configure
make
sudo make install

I've also updated my /etc/gpib.conf:
/ This section configures the configurable driver characteristics
* for an interface board, such as board address, and interrupt level.
* minor = 0 configures /dev/gpib0, minor = 1 configures /dev/gpib1, etc.
/

interface {
minor = 0 / board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. /
board_type = "ni_usb_b" / type of interface board being used /
name = "violet" / optional name, allows you to get a board descriptor using ibfind() /
pad = 0 / primary address of interface /
sad = 0 / secondary address of interface /
timeout = T3s / timeout for commands /

eos = 0x0d  /* EOS Byte, 0xa is newline and 0xd is carriage return */
set-reos = yes  /* Terminate read if EOS */
set-bin = no    /* Compare EOS 8-bit */
set-xeos = no   /* Assert EOI whenever EOS byte is sent */
set-eot = yes   /* Assert EOI with last byte on writes */

/ settings for boards that lack plug-n-play capability /
base = 0 / Base io ADDRESS /
irq = 0 / Interrupt request level /
dma = 0 / DMA channel (zero disables) /

/ pci_bus and pci_slot can be used to distinguish two pci boards supported by the same driver /
/ pci_bus = 0 /
/ pci_slot = 7 /

master = yes    /* interface board is system controller */

}

I then ran sudo ldconfig to get the gpib libraries in order
However, when I run the following command:
sudo /usr/local/sbin/gpib_config
I get the following error:
failed to bring board offline
failed to configure board
main: Inappropriate ioctl for device

How do I go about resolving this issue? I've been banging my head against a wall for quite some time. Help is very much appreciated!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.