LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

localhost IP from labview

Hi,

Does anyone have any idea how to get the IP address of the machine running
labview from labview?

Thanks,

Chris Delaney
0 Kudos
Message 1 of 4
(6,429 Views)
Forgive me. I just found the shell exec VI included with the UNIX version
of LabVIEW. That will greatly simplify things. Sorry for wasting the
space...

On Wed, 21 Jul 1999, christopher sean delaney wrote:

> Hi,
>
> Does anyone have any idea how to get the IP address of the machine running
> labview from labview?
>
> Thanks,
>
> Chris Delaney
>
>
>
Message 2 of 4
(6,429 Views)
You can use the 'String to IP' icon to and get your ip address. Either
wire in an empty string, or don't wire anything at all. The address
comes back as 4-byte digit, each byte represents one section of the dot
notation address. For instance if your ip address is 255.0.255.0 the
value that is returned is 3232235703 decimal (FF00FF0 hex). This
operation uses a few milliseconds.

If you don't want to parse it yourself then you can wire the result into
'IP to String'. I don't recommend this because this operation can take
*seconds*.

All functions mentioned are found in the Functions>Communications>TCP
palette.

ej

In article ,
christopher sean delaney wrote:
> Hi,
>
> Does anyone have any
idea how to get the IP address of the machine
running
> labview from labview?
>
> Thanks,
>
> Chris Delaney
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 3 of 4
(6,429 Views)
I need o get a machine ID for data verification, Weh use DHCP so the
IP's change ever time a machine is rebooted. Is there a way to get the
Ethernet hardware addr, or other serial num?

-jp



On Wed, 21 Jul 1999 21:42:54 GMT, ej wrote:

>You can use the 'String to IP' icon to and get your ip address. Either
>wire in an empty string, or don't wire anything at all. The address
>comes back as 4-byte digit, each byte represents one section of the dot
>notation address. For instance if your ip address is 255.0.255.0 the
>value that is returned is 3232235703 decimal (FF00FF0 hex). This
>operation uses a few milliseconds.
....
>ej
>
In article,
christopher sean delaney ents.uiuc.edu> wrote:
> Hi,
>
> Does anyone have any idea how to get the IP address of the machine running
> labview from labview?
....
> Chris Delaney
0 Kudos
Message 4 of 4
(6,429 Views)