NI-Serial Hardware Is Not Discoverable Using NI-Linux RT Image 2022Q4/2023Q1

Updated Jul 19, 2023

Reported In

Hardware

  • NI-9870
  • PXIe-8430
  • NI-9871

Driver

  • NI-Serial

Operating System

  • LabVIEW Real-Time (NI Linux Real-Time)

Issue Details

After upgrading my CompactRIO/PXIe Real-Time (RT) controller to NI Linux RT Image 2022Q4/2023Q1 I am now unable to see serial resources for my hardware in NI MAX or LabVIEW. For example, here are the results on NI MAX when trying to detect the NI-9870's ports when using it inside a cRIO-9039:
error.png
How can I fix this issue?

Solution

This is a known issue (bug 1860408) between NI-KAL and Linux kernel versions above 5.13, which impact dependent drivers like NI-Serial.

To fix this issue there are two options:
  1. Install Linux RT Image 2023Q2 in the target.
  2. If Linux RT Image 2022Q4/2023Q1 is required for some reason, the workaround is to manually add modversions.h file to the kernel headers of the current system: 
    • Install NI LinuxRT 2022Q4/2023Q1 onto your target.
    • Use any SSH client (i.e PuTTY) to access the target and run the following command: sudo touch/usr/src/kernel/include/config/modversions.h
    • Install NI-Serial. For NI-9870 and NI-9871 C Series modules, the support is called NI-Serial 9870 and 9871 Scan Engine Support.
      • Right-click the Software tab under your RT target on NI MAX and select Add/Remove Software.
After executing any of the previous solutions, the ports should be properly detected:
solution.png