From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
July 2023
This file contains installation instructions and compatibility information for NI-RIO 2023 Q2.
You can find more release information on ni.com.
Using the NI-RIO Driver and FPGA Interface LabVIEW API
Using the NI-RIO Driver and FPGA Interface C API
Using the NI-RIO Driver and FPGA Interface Python API
Using the NI-RIO Driver and FPGA Interface Python API
NI-RIO for Linux/x86 64-bit Architecture has been tested on the following distributions:
Visit NI Hardware and Operating System Compatibility to view driver, desktop operating system, and real-time operating system support for individual hardware devices.
To view information for your device:
Note: Some compatibility information may only be available in the archive attached to the NI Hardware and Operating System Compatibility page. For historic driver and OS support information, refer to the readme for the relevant driver version.
NI provides a repository add-on for all supported drivers that you can install using your Linux distribution's native package manager.
Currently the LabVIEW Interface supports R Series RIO devices on Linux Desktop. You must begin development on a computer that runs Windows. Use LabVIEW FPGA to develop and build an FPGA VI that runs on a RIO device. Next, copy the resulting bitfile and host VI from Windows to your Linux desktop. On your Linux Desktop, open the block diagram of the host VI, change the configuration of Open VI Reference to Bitfile, and select the corresponding bitfile. Run the host VI to deploy the bitfile and interact with the FPGA application.
When you open the examples for NI-RIO in LabVIEW, they might appear to be broken and search for missing files. This is expected until the configuration of Open VI Reference is changed to Bitfile.
To find the RIO devices present on your system that can be used in your application, use the command lsni -v.
You must begin development on a computer running Windows. Use LabVIEW FPGA to develop and build an FPGA VI that runs on a RIO device. Use the FPGA Interface C API Generator to create the C source files for your application. Visit ni.com/r/fpgainterfacecapi to get the latest version of the FPGA Interface C API Generator. Then copy the generated files to the Linux machine to begin development of C/C++ code for your application. For information about using the FPGA Interface C API, visit the NI Documentation Portal.
To find the RIO device you are using in your application, use the command lsni -v to list information on all NI devices in the system.
You must begin development on a computer running Windows. Use LabVIEW FPGA to develop and build an FPGA VI that runs on a RIO device. Copy the compiled bitfile (.lvbitx) over to your Linux machine and follow the steps at github.com/ni/nifpga-python to get started.
Complete the following steps to remotely access RIO devices on your Linux system from another system with NI-RIO installed:
[General] RpcServerPort=11296 DeviceAccess="-*;+10.0.29.54"
Note that the DeviceAccess variable is defined by a semicolon-delimited list of qualifiers, IP addresses, DNS hostnames, and wildcard patterns. To determine whether a remote system has access to RIO devices on this system, the RIO server looks for an entry in the list that matches the remote system. The "+" qualifier allows access, and the "-" qualifier denies access. The RIO server uses the last matching entry in the list to determine whether to allow or deny access. If no entry matches the remote system, the RIO server denies access. For example, if the list is empty, all remote systems are denied access. The first argument in the example above explicitly denies remote access from any IP address. The second argument allows access from the IP address 10.0.29.54. To allow access from multiple IP addresses, define DeviceAccess as follows:
DeviceAccess="+10.0.29.54;+10.0.35.42"
To allow access from any IP address on the network, define DeviceAccess as follows:
DeviceAccess="+*"
The nisyscfg python API can be used to rename the RIO devices. To install the nisyscfg python API, use your package manager to install ni-syscfg-runtime and follow the instructions at tkrebes/nisyscfg-python. Once installed, modify and run the following script in python to rename your device.
import nisyscfg
with nisyscfg.Session() as session:
filter = session.create_filter()
filter.expert_name = "ni-rio"
for resource in session.find_hardware(filter):
print(resource.expert_user_alias[0])
if [is the correct device to rename]:
resource.rename("MyDeviceName")
print(resource)
Some features discussed in the NI-RIO documentation are unavailable on Linux.