From: dave p. <dpe...@gm...> - 2021-08-12 06:16:40
|
Hi, ibask on IbaBNA is only supported for device descriptors, not board descriptors. This is a bit annoying but could be fixed. Why do you need to determine the minor from the board descriptor ? -dave On Mon, 9 Aug 2021 at 23:02, Michael K via Linux-gpib-general <lin...@li...> wrote: > > I have an interface defined in gpib.conf with .... > > interface { > minor = 0 > board_type = "agilent_82357b" > name = "hp82357b" > pad = 0 > sad = 0 > timeout = T30s > > /* settings for boards that lack plug-n-play capability */ > base = 0 > irq = 0 > dma = 0 > > master = yes > } > > If my program uses ibfind .... > GPIBcontroller = ibfind( "hp82357b" ) > > GPIBcontroller is returned as 16 > If I try to use ibask to get the minor number (needed to actually talk to a device on the controller)... > > GPIBstatus = ibask(GPIBcontroller, IbaBNA, &boardIndex); > > I get an error (4 - One or more arguments to the function call were invalid.) (status 0x8130). > > What am I doing wrong ?? > Is there a better way to get the minor number from the interface name? > > Michael > _______________________________________________ > Linux-gpib-general mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general |