LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding ip address

Hello,
I'm a newbie and I'm trying to figure out the tcp/ip connections. I'm going to have a ce windows environment hooked up to a local router and I want to pass/recieve data via labview on a different computer. I think I can achieve this through TCP/IP however I don't know how to determine the ip address of the ce environment. Please help.
0 Kudos
Message 1 of 7
(3,723 Views)
This uses String to IP and IP to String which are both located in the TCP/IP palette. If you don't specify a name input on String to IP, it will use the local computer. As far as working on CE, I'm not 100% sure, but I don't see why it wouldn't work.
 
 

Message Edited by Marc A on 02-27-2007 10:50 AM

0 Kudos
Message 2 of 7
(3,715 Views)
The ce enviornment won't be running labview so I don't know how this solution would work. Can I even utilize TCP/IP if only one computer is running labview while the other isn't? At first, and the ideal solution, was a cross over ethernet cable from the pc running labview to the CE pc but i couldn't figure out how to pass data out in labview. Is that possible?  
0 Kudos
Message 3 of 7
(3,711 Views)

Then why not just use static IP addresses? You could just ask the user for the IP of the CE environment in the LV program. As far as the communication, both computers will have to have something running to send the data. One will be a client, the other a server. It doesn't matter what language you use as long as both programs understand the structure of the packets that are being sent.

Take a look at the examples under the networking -> TCP and UDP folder in the example finder to see how it all works.

0 Kudos
Message 4 of 7
(3,698 Views)

Hi

 

I am facing a similar situation. My pc is the client and a device connnected to my pc is the server. I am using static IP address for my server. My question is using Labview how can I find out IP address of the server? FYI, I am aware of TCP/IP palette. My PC will initiate the communication and in order to do that I need to know IP of server. During operation, the device is the only thing connected to my PC(using ethernet cable)(PC not connected to Internet) Will that aid in locating IP of server faster?

 

 Pls help. Thank u.

0 Kudos
Message 5 of 7
(3,228 Views)

Hi,

 

There is another discussion forum where they have discussed a situation exactly like yours.  They discuss a solution where the servers annouce themselves thorough UDP packet to the subnet broadcast address and to a specific port. This way you know if the server is up and you can get their information using UDP packets.

 

There are also some examples in the example finder on using the TCP/IP functions itself even though there isn't a specific example about your situation itself. 

 

This example talks about TCP Client/Server with automatic reconnection.

 

Hope this helps!

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 6 of 7
(3,192 Views)
I recently worked on a similar project.  We made a second local network (each computer had two ethernet cards).  The "local" network had static IP addresses and we used the internet toolkit VI's to talk to the other PC (or other instruments, as it turned out).  It wouldn't matter if the other PC was running LabVIEW or other software.  If you can get away with that, it *might* make your life easier.
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 7 of 7
(3,181 Views)