Enabling the VI Server on NI Linux Real-Time Targets

Updated Sep 1, 2026

Environment

Hardware

  • CompactRIO Controller
  • PXI Controller

Software

  • LabVIEW

Operating System

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

The VI Server is a set of functions that allows you to dynamically control front panel objects, VIs, and the LabVIEW environment. With VI Server, you can also programmatically load and run VIs either on the local machine or across a network.

This article explains how to enable the VI Server on NI Linux Real-Time (RT) targets, both with or without LabVIEW.

Using the LabVIEW Project Explorer Window

To enable the VI Server on NI Linux RT targets through the LabVIEW Project Explorer Window, please follow the steps below:

 

  1. Add your RT target to a LabVIEW project:
    1. Right-click on the project root and select New>> Targets and Devices...

This image shows how to add a new RT target to labview

    1. Select your target from the list. If the device is not automatically recognized in LabVIEW, select the Specify a target or device by IP address option, type the IP address that corresponds to your device, and select the model from the list. 

 

This image shows how to manually add an RT target to LabVIEW

 

  1. Right-click on the RT target and select Properties to open your device's Properties Dialog Box. 

This image shows how to access the properties of a NI Linux RT target in LabVIEW Explorer Window

 

  1. Navigate to the VI Server category and enable the TCP/IP option. Then, click OK to close the Properties Dialog Box.

This image shows how to enable the VI server on Linux RT targets through the Properties Dialog Box

 

  1. Back in the Project Explorer Window, right-click on the controller and select Deploy to apply the latest changes and enable the VI Server.

This image shows how to deploy the changes to the NI Linux RT target

 

Without Using LabVIEW

To enable the VI Server without using LabVIEW, please follow the steps below:

  1. Access your RT controller shell. 
  2. Run the vi /etc/natinst/share/lvrt.conf command in the shell to open the lvrt.conf in the vi editor. 
  3. Press <I> on the keyboard to enter Insert mode and edit the file.
  4. Add the line server.tcp.enabled=True to the end of the file, as shown in the image below:

This image shows the server.tcp.enabled=True line that was added to the end of the lvrt.conf file

 

  1. Press <Esc> to exit the Insert mode. 
  2. Type :wq to save the changes made to the file and exit the vi editor. 
  3. Reboot the controller or run the /etc/init.d/nilvrt stop && /etc/init.d/nilvrt start  command in the shell to reboot the LabVIEW Real-Time service on the target without power cycling it. This will start the VI Server.