Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

Manually Setting the Timeout Time for RPC connections for NI-RIO Targets

Primary Software: Driver Software>>NI-RIO
Primary Software Version: 2.3
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I need to increase the timeout period for RPC connections to my cRIO controllers due to a slow internet connection. Is it possible to change this setting from MAX?

Solution:
The RPC timeout values are not configurable in MAX because they are rarely needed and advanced settings. Care must be taken when setting these values because if they are set too low, communication may fail because targets will begin timing out. If they are set too high, targets that are down will take too long to timeout. However, with NI-RIO 2.3 or later, it is possible to modifiy these settings manually in the nirio.ini file.

On Real-Time systems, the nirio.ini file is located at the following location:
/ni-rt/system/nirio.ini

On Windows systems, the nirio.ini file is stored under the system-wide application data directory. In Windows XP, for example, it is in:
C:\Documents and Settings\All Users\Application Data\National Instruments\NI-RIO\nirio.ini

In nirio.ini, you can add/edit the following INI settings:

[General]
RpcTimeout = 15
RpcSessionTimeout = 300
DeviceDiscoveryTimeout = 10

RpcTimeout is a setting on the client side, which is the maximum amount of time it can take to make a connection to a remote server.

RpcSessionTimeout is a setting on the client side, which is how long the remote server will wait without hearing a "keep alive" notification before closing the connection. The client will send keep-alives every RpcSessionTimeout/2 seconds.

DeviceDiscoveryTimeout is how long we will wait for remote systems to respond when querying for remote devices in the Browse window of the RIO I/O Control.

The above settings are the defaults and are in seconds (e.g. 300 means 5 minutes).

Related Links:

Attachments:





Report Date: 08/20/2007
Last Updated: 08/20/2007
Document ID: 4CJDJBLX

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit