Programmatically Change IP Address of Real-Time Target in LabVIEW Project

Updated Dec 8, 2021

Reported In


  • CompactRIO Controller

Issue Details

I have a project with a Real-Time (RT) Target. The target has an IP address that changes periodically, but I need to keep networking as is (cannot set IP to static). Since the IP address of the device changes periodically, I need to change the IP address of the target within my project using the RT target Properties dialog box.

How can I change the IP Address Property of my RT Target programmatically?


We can access this property by editing the LabVIEW project's XML file. To change an XML tag, we can use the Set XML Tag method. The tag that we need to call out for IP address is alias.value.

See the attached project for an example of how to use the Set XML Tag method in this manner.


Additional Information

If you would like to change the RT Target Name visible in the LabVIEW project then the tag name is