Can Custom Initialization (.ini) Files be Used in LabVIEW Real-Time?

Updated Apr 26, 2019

Reported In

Hardware

  • cRIO-9035
  • cRIO-9041

Software

  • LabVIEW

Operating System

  • NI Linux Real-Time

Issue Details

On Windows OS I was able to configure the environment with .ini configuration file. I would like to use a custom .ini file in my LabVIEW Real-Time application. How can I do this?

Solution

To use a custom initialization file on an LabVIEW RT target, use the Configuration File VI's found in the File I/O palette in LabVIEW. These VI's allow you to read and write keys in an .ini file, eliminating the need to write your own code to parse the file. They also allow you to create an .ini file.  However, you must use file names that begin with at most 8 characters (with no spaces) followed by a period and then the three letter file extension. 

To avoid permission errors when writing to a custom .ini file on a Linux Real-Time system place the .ini file in the lvuser folder on the target. 
Alternatively, you can also create or edit an .ini file on a host machine and FTP the file to the RT Target. For more information on using FTP to an RT Target see the link below.

Additional Information

Direct modification of the ni-rt.ini configuration file is highly discouraged. Modification of this file may result in incorrect system behavior.

WAS THIS ARTICLE HELPFUL?

Not Helpful