11-23-2012 12:10 AM
i am new to the ethernet communication using labview. I do not have any hardware. I have two laptop i need to send and recieve the data via these 2 laptop using labview. Kindly help me on this.
Solved! Go to Solution.
11-23-2012 12:15 AM
Help Menu >> Find Examples >> Networking >> TCP & UDP >> Open "Data Client.vi" and "Data Server.vi"
11-23-2012 06:10 AM
i saw that VI. But i was not able to understand can u plz tell how exactly to connect . can u plz explain the same? it would be great help
11-23-2012 06:45 AM
You can also start with UDP sender and UDP receiver. They work just as they are and there is a step-by-step instruction on the front panel.
Cheers
Edgar
11-23-2012 08:56 AM
11-26-2012 07:02 AM
Thanks for the reply. I have connected two laptop via ethernet and specfied a specific ip address in the TCP/IP network propoerties for the both the pc's. Both the pc's ip are different. in one pc i have simple data reciver vi with port no 2055. In other i have run Simple data client vi with ip address of other pc and port no 2055. But i am getting an error of timeout.
I am not getting exactly why the error is coming.
Do i need to use the cross cable itself. I can not use st lan cable.?
11-26-2012 07:22 AM
As Dennis already said: for a direct PC - PC connection you need a cross over cable. If you connect through a router or a switch you use a standard cable.
11-26-2012 08:06 AM
thanks a lot it is working.
11-27-2012 03:41 AM
Hi thanks for the help.
Actually i am trying to send 10 sine signals from server pc to client pc. So i will bundle 10 signals in server pc and send it and in client pc i am unbundling it and need to save in TDMS format.
Till unbundling i was able to do. TDMS format it is saving only last value. I need to save all the values. Kindly help me on same. I am attaching both the VI.
11-28-2012 03:20 AM
Two ways to make your Client.VI works.
1). Change the open mode from "Create or Replace" to "Open Or Create".
OR
2). Move the 'tdms open' and 'tdms close' out of the while loop.
Thanks.
zaizhou.ma