From: dave p. <dpe...@gm...> - 2022-01-24 09:19:10
|
Hi Matt, It looks like your setup is still using the default gpib.conf file which indeed calls the board by the name "violet". If you run gpib_config with a gpib.conf argument different from the --sysconfdir path used in your build (default /usr/local/etc) you must set the IB_CONFIG environment variable. This worked for me: $ sudo gpib_config -f /home/dave/gpib/gpib.conf $ export IB_CONFIG=/home/dave/gpib/gpib.conf $ 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' 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) ... etc The default file in my setup in /etc also has "violet" as the board name. Not sure why it is not working for you. cheers, -Dave On Mon, 24 Jan 2022 at 02:50, Matt Huszagh <hus...@gm...> wrote: > 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 > > > _______________________________________________ > Linux-gpib-general mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > |