From: Martin O. <mar...@de...> - 2007-11-27 17:40:00
|
Hello all, I want to write gpib-DAQ software for a Keithley, which is accessed via gpib-usb-hs from National Instruments. For this I took the gpib-library from sourceforge : linux-gpib-3.2.09. The OS of my PC is Scientific Linux 4. I successfully installed libgpib on a 32-Bit machine. When I did the same steps on a 64-Bit machine I failed. The installation itself worked without problems. Also the modules are loaded (I checked this with help of lsmod). All permissions are set correctly (I even tried as root). By 'cat /proc/bus/usb/devices' I saw that the gpib-usb-hs was detected correctly. So everything looks fine. The result on the 64-Bit machine is, however, when starting 'ibtest' and accessing the board: > 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: gpib-usb-hs > trying to open board named 'gpib-usb-hs' > libgpib: IBOPENDEV ioctl failed > libgpib: ibfind failed to get descriptor > failed to open board Also trying 'gpib_config --minor 0' leads only to > failed to bring board online > failed to configure board > main: Cannot allocate memory In the case of the 32-Bit machine everything worked fine. Has someone an idea what's wrong? I'm grateful for any idea. Cheers, Martin PS: Here some output of several things: > lsmod |grep ni ni_usb_gpib 34048 1 gpib_common 41736 3 ni_usb_gpib > ls -l /dev/gpib* crw-rw---- 1 root gpib 160, 0 Nov 27 16:24 /dev/gpib0 [...] > cat /proc/bus/usb/devices [...] T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=02 Dev#= 4 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=3923 ProdID=709b Rev= 1.01 S: Manufacturer=National Instruments S: Product=GPIB-USB-HS S: SerialNumber=01211A2D C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 5 Cls=ff(vend.) Sub=00 Prot=00 Driver=ni_usb_gpib E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=250us E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=250us E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms > cat /etc/gpib.conf interface { minor = 0 board_type = "ni_usb_b" name = "gpib-usb-hs" pad = 21 master = yes } > locate gpib | grep -v scratch | grep -v share [...] /dev/gpib0 /etc/gpib.conf /etc/hotplug/usb/ni_usb_gpib.usermap /etc/hotplug/usb/ni_usb_gpib /lib/modules/2.6.9-55.0.12.EL.cernsmp/extra/gpib_common.ko /lib/modules/2.6.9-55.0.12.EL.cernsmp/extra/pc2_gpib.ko /lib/modules/2.6.9-55.0.12.EL.cernsmp/extra/ni_usb_gpib.ko /lib/modules/2.6.9-55.0.12.EL.cernsmp/extra/cec_gpib.ko /lib/modules/2.6.9-55.0.12.EL.cernsmp/extra/ines_gpib.ko /lib/modules/2.6.9-55.0.9.EL.cernsmp/extra/gpib_common.ko /lib/modules/2.6.9-55.0.9.EL.cernsmp/extra/pc2_gpib.ko /lib/modules/2.6.9-55.0.9.EL.cernsmp/extra/ni_usb_gpib.ko /lib/modules/2.6.9-55.0.9.EL.cernsmp/extra/cec_gpib.ko /lib/modules/2.6.9-55.0.9.EL.cernsmp/extra/ines_gpib.ko /usr/lib64/python2.3/site-packages/gpib.so [... (mainly labview)] /usr/local/include/gpib /usr/local/include/gpib/ib.h /usr/local/include/gpib/gpib_user.h /usr/local/sbin/gpib_config /usr/local/lib/libgpib.so /usr/local/lib/libgpib.so.0 /usr/local/lib/libgpib.so.0.1.3 /usr/local/lib/libgpib.la |