Re: Problem with ibfind / ibask to get the minor number of controller

dave penkler <[email protected]> Thu, 12 Aug 2021 08:16:23 +0200
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CAL=kjP3qQCjoTqVM83pfV=KVVEwysiaF8kyvdOOW77NQD2anWA@mail.gmail.com>
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
<[email protected]> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general