Installing Software to Offline NI Linux Real-Time Targets

Updated Apr 4, 2025

Environment

Hardware

  • PXI Controller
  • CompactRIO Controller

Software

  • NI Linux Real-Time Offline Installation Support

Operating System

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

This tutorial covers the process for installing software on an offline NI Linux Real-Time target using the NI Linux Real-Time Offline Installation Support bundle.

The offline support bundle contains a package repository of all the packages located on the NI website feed specific to the user-specified release version. The software package repository installer and offline installation support allows the installation of software packages on Linux Real-Time targets when the target and host PC are in a secure environment that cannot access NI website.

The offline support bundle contains all packages available on NI website and uses Linux’s package-based system to install software to the target. The support files allow the host PC to act as a server from which the target retrieves its packages.

Install NI Software

Note:

  1. Install the latest version of NI Package Manager (PM) on the host PC.

  2. Launch NIPM.

  3. Search for and install System Configuration and NI Linux Real-Time Offline Installation Support.

  4. After the package repository and offline installation support successfully installs to the host PC, close the success dialog.
     

Install Third Party Feed

If third-party drivers are being used, follow these steps to download and install the files to the host PC. Since the target cannot access the internet to fetch the packages, the third-party drivers feed content must be installed in a location on the host PC that NI Measurement and Automation Explorer (MAX) uses to serve the packages to the target. If third-party drivers are not being used, skip to the next section.
 

  1. Open http://download.ni.com/ni-linux-rt/feeds/2020/ni-third-party in a browser. Change the feed version if necessary.

  2. Download all the files on the feed and install them in a new folder inside C:\Program Files\National Instruments\RT Feeds\20.x\. The new folder must not contain any spaces. For example, C:\Program Files\National Instruments\RT Feeds\20.0\third-party-driver-feed.

Note: Some web browsers add a .txt extension to files that have no extensions. Make sure the copied file names match the names on the feed, especially the extension-less "Packages” file.
Image1.jfif

 

Install Software on Linux Real-Time Target

  1. Launch NI MAX.

  2. Expand Remote Systems and navigate to the desired target.

  3. Expand the target. Right click and select Add/Remove Software.

  4. If using a new/formatted device, select the Base System Image to be used on the target. The available versions can be accessed by clicking the gear icon on the left-hand side. Once the selection has been made, click OK.


    A base system image contains the operating system and components to manage NI software through feeds located on NI website or a user-specified location.

Note: The most recent base system image is selected by default. In case there is no requirement of a base system image to manage the software on the target, it is possible to install software set from the Legacy Installation section only if LabVIEW Real-Time is installed on the host PC. The Legacy Installation method does not exist for PXI Linux RT target.
SelectSoftware.jfif

  1. It may be required to format the target after the selection of a new base system image. If formatting is required, click Format when prompted.

  2. Once formatted, select the programming environment to use on the target and click Next.

  3. Select Allow the target to retrieve packages from feeds hosted on this computer and click OK. It might be necessary to select another port if the preselected port is unavailable. The look of the page will be different if the host PC is online or offline:
    • Online Host PC

    • Offline Host PC

  4. Click Yes to allow the NI RT Feed Server to open a port in the firewall.

  5. Choose the packages to be installed on the target and click Review changes. Packages are preselected based on the target's base system image and programming environment.

  6. Review the packages that have been selected for installation and click Continue to retrieve the packages from the host PC and install them onto the target.

  7. After installation is complete, click Close to dismiss the success dialog.

Install NI Software Using a Host PC With Strict Firewall Restrictions

If the Host PC has strict firewall restrictions because of which it does not allow hosting the feeds, it is possible to store the feeds on a local drive on the target.

  1. Install NI Linux Real-Time Offline Installation Support. The version should match the installed Base System Image version. If the image on the target is older than the Host software, refer to the following article for upgrading the image using a USB drive: Restore NI Linux RT Target to Factory Default Configuration.
  2. Copy the C:\Program Files\National Instruments\RT Feeds\XX.Y.Z to the offline RT target.
    • The XX.Y.Z is the feed version that should match the installed Base System Image version.
    • The specified directory above is large. In case of a cRIO chassis, it is possible to use a USB drive.
    • Make sure there are no spaces in the path
  3. Access the Shell of the target and comment out the following existing (unavailable) feeds by adding the # at the start of each line of each file. You can use the vi text editor to edit the files by running vi/path/filename. To enter the edit mode in vi, press [i]:
    • etc/opkg/ni-third-party.conf
    • /etc/opkg/ni-software.conf
    • /etc/opkg/NI-dist.conf
    • /etc/opkg/base-feeds.conf
  4. After completing editing, press [ESC] to enter the command mode and type :wq to write the changes and quit. To avoid writing the changes, enter :q!
  5. Connect the USB drive to the target and locate its mount path by typing lsblk in the shell.

     

  6. Run the following command to generate the local feeds: find /USBMountPath -name 'Packages.gz' -exec dirname {} \; | awk '{print "src/gz local" NR " file://" $0}' > /etc/opkg/local.USBfeeds.conf
    • The /USBMountPath should be replaced with the actual path. In this case, it is /media/sda1
  7. Wait until the command finishes its execution. It may take a while for it to complete
  8. Run opkg clean to clean the package manager cache and then run opkg update to test the local feeds.

After the steps above, you should be able to install the necessary software through NI MAX as long as the USB drive is connected and is mounted to the target.

The installed packages now appear in the target's Software section.

Was this information helpful?

Yes

No