From: Matt H. <hus...@gm...> - 2022-01-24 01:49:44
|
Hello, I'm having trouble updating my configuration file and getting linux-gpib to recognize the new configuration. My configuration file (for an NI PCIe GPIB) is ``` interface { minor = 0 board_type = "ni_pci" name = "gpib0" pad = 21 master = yes pci_bus = 7 pci_slot = 12 } ``` Running gpib_config seems to work fine. I run ``` sudo gpib_config -f /home/matt/.config/linux-gpib/gpib.conf ``` which exits without error. dmesg shows the following: ``` $ dmesg | tail [163957.741639] gpib0: exiting autospoll thread [163957.741787] mite: 0xf7504000 mapped to 0000000033271221 [163957.741795] mite: daq: 0xf7500000 mapped to 00000000d3bfa315 [163957.741811] tnt4882: irq 24 ``` However, then running ibtest fails to open the gpib0 board: ``` $ sudo ibtest Do you wish to open a (d)evice or an interface (b)oard? (you probably want to open a device): b enter name of interface board (or device) you wish to open: gpib0 trying to open board named 'gpib0' failed to open board ``` But, if I use the name "violet", which is the name for the interface with minor 0 in the template configuration file, it appears to work fine. ``` enter name of interface board (or device) you wish to open: violet trying to open board named 'violet' You can: w(a)it for an event write (c)ommand bytes to bus (system controller only) send (d)evice clear (device only) change remote (e)nable line (system controller only) (g)o to standby (release ATN line, system controller only) send (i)nterface clear (system controller only) ta(k)e control (assert ATN line, system controller only) get bus (l)ine status (board only) go to local (m)ode change end (o)f transmission configuration (q)uit (r)ead string perform (s)erial poll (device only) change (t)imeout on io operations request ser(v)ice (board only) (w)rite data string send group e(x)ecute trigger (device only) : l DAV off NDAC on NRFD off IFC off REN on SRQ off ATN on EOI off gpib status is: ibsta = 0x130 < CMPL CIC ATN > iberr= 0 ibcntl = 0 ``` When I run ibtest, does it load the configuration from the configuration file, or does gpib_config load the data that is then used by ibtest? I thought it was possibly reloading the config, so I set IB_CONFIG: ``` $ echo $IB_CONFIG /home/matt/.config/linux-gpib/gpib.conf ``` But ibtest still only responds to violet. What am I doing wrong here? Thanks Matt |