Solution
To prevent this error from occurring, the timeout period for RIO Server RPC connections of the cRIO controller needs to be increased. With NI-RIO 2.3 or later, it is possible to modify these settings manually in the
nirio.ini file.
Follow the steps shown below:
- Locate the nirio.ini file
- For Real-Time systems, the location of the nirio.ini file varies by RT OS:
- On VxWorks and Phar Lap ETS: /ni-rt/system/nirio.ini
- On NI Linux RT: /var/local/natinst/nirio/etc/nirio.ini
- On Windows systems, the nirio.ini file is stored under the system-wide application data directory.
- In Windows XP: C:\Documents and Settings\All Users\Application Data\National Instruments\NI-RIO\nirio.ini
- In Windows Vista/7/8: C:\ProgramData\National Instruments\NI-RIO\nirio.ini
- To access the ProgramData folder, ensure all hidden folders, files, and drives are visible in Windows Explorer.
- To display all hidden items, within Windows Explorer navigate to Tools»Folder Options»View»Show hidden, files, folders, and drives.
- Note: In case you can't locate the nirio.ini file. This is a known issue. Create the file manually or modify the remote access list from the default values or you can (check the following article for more details on the latter).
- In nirio.ini, increase the following INI settings:
- [General]
- RpcTimeout = 15
- RpcSessionTimeout = 300
- DeviceDiscoveryTimeout = 10
- Note: These values are the defaults and are in seconds (e.g. 300 means 5 minutes).
- Refer to the Additional Information section for more explanation of these settings
There are many reasons which may lead to this error. If editing the timeout values doesn't take an effect, please check the
following article for further troubleshooting.