LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

network or ip address in LV

Is there a way for an LV application to determine the network name of the machine it is running on, or failing that, the IP address of the machine it is running on?
0 Kudos
Message 1 of 3
(2,823 Views)
Check this example vi. Click on Get IP(Get Local IP Address.vi) sub-vi. Using the IP to String function, you can get either the network name or the IP address.
0 Kudos
Message 2 of 3
(2,823 Views)
You use the String to IP function wired to an IP to String function. If no input is wired to the String to IP, you get the local machine. Leaving the dot notation input of IP to String unwired or a False gets the computer name. Wiring a True gets the IP address.
0 Kudos
Message 3 of 3
(2,823 Views)