From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Configure RealTime Target for PC Hosted Shared Variables

Code and Documents

Attachment

Introduction

The attached utility can be used when distributing an application where a RealTime Target references Network Published Shared Variables on a PC host. As long as the target has been configured in Measurement & Automation Explorer, this utility will programmatically alter the aliases file on the target and reboot it so that it will reference the IP address of the new PC host.

Steps to Complete

Run the attached utility in the zip file and follow the instructions.

Configure Target Screenshot.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors