From: Michael K <vk...@ya...> - 2021-08-09 21:02:19
|
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 |