03-05-2010 12:25 PM
I know that I can read the hostname from a cRIO but I would also like to be able to write to this property.
Is there anyway to do this?
Thanks
Solved! Go to Solution.
03-08-2010 10:09 AM
You can change the network settings of an RT target including the name using \vi.lib\real-time\rtutility.llb\RT Apply Target Network Settings (Static).vi
Manually you can retrieve the ni-rt.ini file, change the machine name, and redeploy it to the target.
03-08-2010 02:56 PM
Ok, thanks that will work but I do not really want to have the controller reset.
I tried to use the FPC write packet vi to change the host name but it did not work.
I opened a connection read the FPC, modified the hostname (with pading) and
then did the write. Is there something else that needs to be done?
03-09-2010 11:16 AM
Unfortunately what else needs to be done is to reset or reboot the controller so that it goes back out to the DHCP server and re-registers, informing the DHCP/DNS server of its new name.
The FPC Write updates the INI file, but does not inform the DNS server of the change. If you query the RT target for its name (e.g. in MAX) it will return the new name even without rebooting.