02-20-2017 05:04 AM
Hi all,
Under Scientific Linux 6, x86_64, nlsdev reports no devices.
$ nilsdev -v
-52026
Error code could not be found. Reinstalling the driver might fix the issue. Otherwise, contact National Instruments technical support.
However, six PXI 5122 are there:
$ lspci |grep National
08:0a.0 Unassigned class [ff00]: National Instruments PXI-5122 (rev 01)
08:0c.0 Unassigned class [ff00]: National Instruments PXI-5122 (rev 01)
08:0e.0 Unassigned class [ff00]: National Instruments PXI-5122 (rev 01)
09:0c.0 Unassigned class [ff00]: National Instruments PXI-5122 (rev 01)
09:0e.0 Unassigned class [ff00]: National Instruments PXI-5122 (rev 01)
0a:0a.0 Unassigned class [ff00]: National Instruments PXI-5122 (rev 01)
Drivers seem to be correctly installed:
$ lsmod
Module Size Used by
ipmi_devintf 8130 0
ipmi_si 45424 0
ipmi_watchdog 18066 0
ipmi_poweroff 8411 0
ipmi_msghandler 37465 4 ipmi_devintf,ipmi_si,ipmi_watchdog,ipmi_poweroff
nimru2k 662960 2
nimxdfk 613601 3 nimru2k
nimdbgk 471787 4 nimru2k,nimxdfk
nidimk 423095 3 nimru2k
niorbk 120716 4 nimru2k,nimxdfk,nimdbgk,nidimk
ni488k 219392 0
nipalk 1252368 9 nimru2k,nimxdfk,nimdbgk,nidimk,niorbk,ni488k
nikal 90587 6 nimru2k,nimxdfk,nimdbgk,nidimk,niorbk,nipalk
[...]
and, moreover, the PCI devices are correctly recognized by the driver, as seen under sysfs:
$ ls /sys/bus/pci/drivers/NIHSDLinux32/ -l
total 0
lrwxrwxrwx 1 root root 0 Feb 20 11:59 0000:08:0a.0 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:07:00.0/0000:08:0a.0/
lrwxrwxrwx 1 root root 0 Feb 20 11:59 0000:08:0c.0 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:07:00.0/0000:08:0c.0/
lrwxrwxrwx 1 root root 0 Feb 20 11:59 0000:08:0e.0 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:07:00.0/0000:08:0e.0/
lrwxrwxrwx 1 root root 0 Feb 20 11:59 0000:09:0c.0 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:07:00.0/0000:08:09.0/0000:09:0c.0/
lrwxrwxrwx 1 root root 0 Feb 20 11:59 0000:09:0e.0 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:07:00.0/0000:08:09.0/0000:09:0e.0/
lrwxrwxrwx 1 root root 0 Feb 20 11:59 0000:0a:0a.0 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:07:00.0/0000:08:09.0/0000:09:09.0/0000:0a:0a.0/
--w------- 1 root root 4096 Feb 20 11:59 bind
lrwxrwxrwx 1 root root 0 Feb 20 11:59 module -> ../../../../module/nikal/
--w------- 1 root root 4096 Feb 20 11:59 new_id
--w------- 1 root root 4096 Feb 20 11:59 remove_id
--w------- 1 root root 4096 Feb 20 11:59 uevent
--w------- 1 root root 4096 Feb 20 11:59 unbind
I have gone crazy trying to understand what's missing. In case it helps, I attach herewith strace's of the execution of nilsdev -v in this machine, where it fails to find anything, and of another where the same software is installed verbatim, and three PXI 5122 modules are detected by nilsdev -v.
Any suggestion?
02-21-2017 05:37 PM
Which driver version are you using?
You already tried reinstalling the driver?
So you have other DAQ devices that are recognized properly?
I was doing some research about the NI PXI-5122 and the target OS is Windows. But you could work with the NI SCOPE driver for linux for this device. Do you have this driver installed?
03-02-2017 02:23 AM
It is NIScope under Linux what I have installed.
The problem with nilsdev turns out to be simply caused by the absence of
/acc/sys/L866/var/local/natinst/NI-DAQmx/locks
/acc/sys/L866/var/local/natinst/NI-DAQmx/locks/nidaqmxSystemStorageWrite.lock
/acc/sys/L866/var/local/natinst/NI-DAQmx/locks/nidaqmxSystemStorageRrWr.lock
Note that no meaningful error is given when nilsdev exits:
$ nilsdev -v
-52026
Error code could not be found. Reinstalling the driver might fix the issue. Otherwise, contact National Instruments technical support.
Now that this has been overcome, yet another problem arises: when two processes access a board concurrently, my machine gets a hard freeze (no ping, no ssh, nothing... and of course no trace in the kernel ringbuffer).
03-03-2017 07:41 AM
Hi,
Since you are having issues with NI SCOPE and NI hardware I recommend posting your question on this forum: http://forums.ni.com/t5/High-Speed-Digitizers/bd-p/150 instead of Multifunctional DAQ.