LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Linux Device Drivers - devices not detected

I'm guessing the "LabVIEW" board, as before you get as far as using LabVIEW, your devices need to be detected!

 

On a computer with a blank disk, I installed

  1. ubuntu 20.04.2
  2. NI Linux Device Drivers" (2021 Q3)
  3. nidaqmx

The installation appears to be correct, as in dmesg, one sees that kernel module is loaded:

[   19.898143] nikal: module license 'Copyright (c) 2002-2021 National Instruments Corporation.  All Rights Reserved.  Any and all use of the copyrighted materials is subject to the then current terms and conditions of the applicable license agreement, which can be found at <http://www.ni.com/linux/>.' taints kernel.

 The computer contains a:

$ lspci | grep -i national
05:00.0 Unassigned class [ff00]: National Instruments PCI-6014

 and AFAIR nidaqmx already contains the device driver for it, but AFAICT it is not detected:

$ cat /run/nidevldu.status 
DevLoader Init time: 6008 ms
        - Resource Expert Init time: 5803 ms
        - PXI Init time: 202 ms
        - APAL synchronize count: 1

0 Device(s) Found:

 and nilsdev shows nothing.

I assume I should see something? What have I missed?

0 Kudos
Message 1 of 6
(2,052 Views)

Have a look at the readme of the Linux daqmx driver

 

The PIC-6014 is not supported by this driver.

 

This card is probably too old to have been included into that driver.


Regards, Jens

Kudos are welcome...
Message 2 of 6
(2,038 Views)

Bother: I was sure I had read that new DAQmx included legacy (aka traditional) DAQmx (true on windows, but not on linux, or not true at all?)

 

So, try again:

  1. install Centos 7
  2. try to install "NI-DAQmx Base" 15.0, which claims to support the PCI-6014, and the Centos 7 operating system

It appears that cutting edge gcc 4.8.5(!) finds things to warn about in the NI source code, and the kernel module fails to compile:

Configuring NI-KAL for kernel version 3.10.0-1160.36.2.el7.x86_64...
Building module nikal...
nikal: CC [M] /var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.o
nikal: /var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.c:2019:10: error: ‘GENL_ID_GENERATE’ undeclared here (not in a function)
nikal: .id = GENL_ID_GENERATE,
nikal: ^
nikal: /var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.c: In function ‘nNIKAL100_initDriver’:
nikal: /var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.c:2059:4: error: implicit declaration of function ‘genl_register_family_with_ops’ [-Werror=implicit-function-declaration]
nikal: if ((status = genl_register_family_with_ops(&nikal_netlink_family, nikal_netlink_ops, 1))) return status;
nikal: ^
nikal: /var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.c: In function ‘nNIKAL240_do_munmap’:
nikal: /var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.c:3699:4: error: too few arguments to function ‘do_munmap’
nikal: return do_munmap(mm, addr, len);
nikal: ^
nikal: In file included from /var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.c:61:0:
nikal: include/linux/mm.h:2089:12: note: declared here
nikal: extern int do_munmap(struct mm_struct *, unsigned long, size_t,
nikal: ^
nikal: cc1: some warnings being treated as errors
nikal: make[2]: *** [/var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal/nikal.o] Error 1
nikal: make[1]: *** [_module_/var/lib/nikal/3.10.0-1160.36.2.el7.x86_64/nikal] Error 2
nikal: make: *** [nikal.ko] Error 2
nikal: ERROR: failed to build nikal

 so still no way to resurrect the bending beam experiment...

 

Any further hints? nikal.c patch?

0 Kudos
Message 3 of 6
(2,004 Views)

Sorry, no idea, I never installed NI drivers on Linux systems (well except on newer cRIOs, but there the NI tools do that for me).

 

I just know about the readme for Linux-DAQmx because of other threads here in the forum.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 4 of 6
(1,993 Views)

OK - starting a new thread, as the title is now wrong, and there doesn't seem to be a way to edit it.

NI-DAQmx-Base-15-0-nikal-c-build-failure 

0 Kudos
Message 5 of 6
(1,973 Views)

Link above has expired. Here is new one:LabVIEW/NI-DAQmx-Base-15-0-nikal-c-build-failure 

0 Kudos
Message 6 of 6
(1,950 Views)