koushik Posted November 26, 2013 Report Share Posted November 26, 2013 (edited) Hello, I have set up a vi in my project where it deploys startup.rtexe, web service and the related web service vi and a shared variable library to the real-time(sbRIO) target. i have 3 targets in the project 1) My computer 2) RT-Target 3) FPGA. What i want is to change the properties of the RT-Target whereby i can assign the IP address of the device to the target project properties programmatically. i can manually assign the IP address by right click on target->properties->IP address. but sometimes the IP address changes and so target cannot be reached and deployment fails. i want to be able to set the IP address through the VI and then deploy the items to the target. Please suggest a way to do this. Thank you. Edited November 26, 2013 by koushik Quote Link to comment
Popular Post JLMommy Posted November 26, 2013 Popular Post Report Share Posted November 26, 2013 You can use the Project API to find the Target Item and then modify its properites. The project is technically an XML file so there is a method to get/set tags for targets. The tag "alias.name" is the RT Target Name visible in the project. The tag "alias.value" is the IP address as a string. The attached code modifies one of the RT example project IP addresses programmatically. Set_RT_Target_IP.vi 3 Quote Link to comment
EBMommy Posted May 18, 2018 Report Share Posted May 18, 2018 Thanks JLMommy! This is exactly what I needed Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.