08-11-2021 08:21 AM
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
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?
08-11-2021 08:58 AM
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
08-12-2021 07:56 AM
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:
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?
08-12-2021 08:49 AM
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
08-13-2021 04:07 AM - edited 08-13-2021 04:50 AM
OK - starting a new thread, as the title is now wrong, and there doesn't seem to be a way to edit it.
08-16-2021 05:59 AM
Link above has expired. Here is new one:LabVIEW/NI-DAQmx-Base-15-0-nikal-c-build-failure