Problem with ibfind / ibask to get the minor number of controller
Michael K via Linux-gpib-general <[email protected]> Mon, 9 Aug 2021 21:01:59 +0000 (UTC)
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <[email protected]> |
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 16If 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