Error -1074118656 in NI-DMM Driver After Updating the Linux Kernal

Updated Feb 9, 2022

Reported In

Driver

  • NI-DMM

Operating System

  • Linux

Issue Details

 
I am currently using RHEL 7.8 and Python with two PXIe DMMs, such as the PXIe-4080, in a PXIe chassis, such as the PXIe-1085, that worked correctly before kernel updates.
After kernel updates on the machine (from kernel 3.10.0-1062.9.1.el7.x86_64 to kernel 3.10.0-1127.el7.x86_64), the DMMs no longer connect properly.

 
After the kernel update I now see the following error:

Error -1074118656 nidmm.errors.DriverError: : Device was not recognized. The device is not supported with this driver or version. 

 
  • The error appears when trying to connect to the DMM via a Python script.
  • I cannot revert the machine to the kernel's previous version for security reasons. 
  • I did notice that the DMM cards appear on the lsni -v call, but they don't appear on the lspci call created by the system report.

Solution

  1. Open the command prompt and run it as administrator
  2. Input the following command and run: dracut --omit-drivers "ni408x_driver nicntdrk nidimk nikal nimdbgk nimru2k nimxdfk niorbk nipalk nipxifpk nipxirmk nismbus" --force
  3. Reboot the system
  4. If this has not resolved the issue, you will need to reimage the machine on the latest kernel version, without any NI drivers
  5. Once reimaged, install the NI drivers, such as NI-DMM

Additional Information

  • Either reimaging the machine or running the script will fix the non-working driver. 
  • This error can happen when the kernel is updated while the driver was installed on a previous kernel version. RHEL recognizes that the driver was installed with a previous kernel version and tries to run it with the older kernel version. This is why the error message appears.