09-28-2018 07:27 AM
Hello guys,
I have a code running on a cRIO. I want to display the IP address of the cRIO in a VI. I tried with IP to String node. But it didn't work as it returned 0.0.0.0. Is there any other way through which I can display it?
Thanks,
Prasanna.
Solved! Go to Solution.
09-30-2018 02:00 PM
Hello Prasanna,
Have you tried using the System Configuration VIs to get this information? I suggest using a Hardware Property Node to access this information.
I do not have access to a CompactRIO right now, but I presume something similar to the next image should work:
All the best,
10-01-2018 05:42 AM - edited 10-01-2018 05:43 AM
And alternative is to use the String to IP, with empty input, followed by an IP to String function. It's the String to IP function that defaults to the local IP address, if the input is left empty. This only works reliably if you have a single Ethernet interface, otherwise you need to put the String to IP into multiple mode by selecting the "Multiple Output" in the right click menu and putting the IP to String inside a For Loop.