02-13-2017 05:56 PM
I would like my cRIO-9024 (LabVIEW 2014) application to be able to change the gateway address of the controller and then implement the change without having to reboot the controller.
Currently, the only method I can see to programmatically change the gateway address is to edit the ni-rt.ini file, and then reboot the controller. I would like to avoid having to reboot the controller. Is there a way to programmatically stop and start the ethernet service, or something equivalent?
Solved! Go to Solution.
02-13-2017 06:22 PM
NOTE: I have not tried this and it may not work.
Using the Software Management sub palette under System Configuration of RT Utilities you can set the IP Address (sub-net, discovery type, etc...) Again, I haven't tried it and have no 9024 handy to test it on.
02-13-2017 06:39 PM - edited 02-13-2017 06:41 PM
The 902x cRIOs run VxWorks, you have to reboot it to change the IP. I expect the same is true for the gateway IP and DNS configuration.
I will note that the newer LinuxRT cRIOs can do this 🙂 (906x and 903x series).
06-05-2017 12:46 PM
Sorry for the delay in responding. I finally tried this out, and using the SysCfg utilities works. I use Initialize Session, then set the Gateway Property, then Save Changes, then Close. A re-boot is needed for the change to be applied.