Connecting to a gRPC Server
- Updated2026-07-08
- 3 minute(s) read
-
Ensure the gRPC server is running on the correct machine.
Note For a local server, the gRPC server must run on the same local machine as the server. You can launch the gRPC server from the Radar Target Generator pane if the RTG Server.exe is installed on the local machine. Refer to Accessing Utilities for more information.Note For a remote server, the gRPC server must run on the same remote machine as the server.Note The server must be running for RTG to receive gRPC commands.Note The information icon is bordered in red to indicate an invalid configuration or error. Click the information icon for more information.
Figure 39. RTG gRPC Server Window
Server Status Listening Port Status -
Connect to the gRPC server using the UI or the API.
- To connect using the UI, complete the following steps.
- In the Radar Target Generator pane, fill in the IP Address field and the Port Number field for the gRPC server you want to connect to.
- Select Connect. The panel moves into the Connected: Idle state.
- To connect using the API, complete the following steps.
- Call Create NI-RTG.
- Define the following option string values: CertificatePath, ClassPath, IPAddress, and Port Timeout.
- To connect using the UI, complete the following steps.
Server Default Settings
The RTG server default settings are as follows:
- The gRPC server port is 50052.
- The server finds the IP address of the host computer automatically. Use the IP address or computer name to access the gRPC server through a gRPC client.
Refer to Using the Configuration Utility to change the server default settings in the INI file.
Remote Communication
For remote communication, the Radar Target Generation software includes a designated server, RTG Server.exe, to listen for remote commands by way of gRPC. gRPC is an open-source, language-agnostic framework that uses protocol buffers to send data between systems and services. For more information about gRPC, refer to Introduction to gRPC on the gRPC Open Source Framework website.
When using gPRC, you can establish a connection to the RTG server and send data in the following ways:
NI provides an example script to generate a certificate using OpenSSL. Find this example on the ni/grpc-labview repo on GitHub.
Related Information
- Accessing Utilities
- Using the RTG Configuration Utility
The RTG Configuration Utility is a Windows desktop application for creating, editing, and validating RTG configuration INI files. It is written for end users who set up and maintain the configuration that tells the RTG software which hardware is installed and how it is connected.
- Introduction to gRPC
- INI File
The RTG system requires the use of a configuration file, named RTG Configuration Support.ini, which is located on Windows systems at: <Public Documents>\National Instruments\RTG.
- SSL/TLS Support Example Script