03-23-2010 11:25 AM
Hello, everyone.
I want to develop a program for communicating between two ip addresses:
IP1: 192.168.1.100 IP2: 192.168.1.101
Assume IP1 is the server and IP2 is the viewer, then I want to set up a program for estimating the time elapsed for IP1 to communicate with IP2, but I don't know how to do it.
Also, I want to display the elapsed time for the connection (which is varying due to internet fluctuations), by performing actions like continuously "pinging" the receiver from the server. Can anyone show me the way for doing this? Thank you very much.
Best Regards, yukfai88 |
Solved! Go to Solution.
03-23-2010 11:47 AM
please don't shout 😛
How about using ping?
Feed the output into a scan from string to read the value you need. Sorry my OS is answering in german so you will have to adapt it 😉
03-23-2010 12:28 PM
Hi, Henrik Volkers.
Thanks for your help. It may be the subprogram I need, but I want to ask what is the icon that immediately comes after constant "ping -n 127.0.0.1".
Regards,
yukfai88
03-23-2010 01:13 PM
03-23-2010 07:38 PM
Thanks, GerdW. I can find it now, but I also want to ask what is the format string in the "Scan from string" vi, which is "Mittelwert\s=\s%dms". Thanks a lot.
Regards,
yukfai88
03-23-2010 10:10 PM
yukfai88 wrote:Thanks, GerdW. I can find it now, but I also want to ask what is the format string in the "Scan from string" vi, which is "Mittelwert\s=\s%dms". Thanks a lot.
Regards,
yukfai88
If I'm reading it right, that will extract the average ping time (using german ping output though, you'd want Average instead of Mittelwert if your ping language is english)
03-24-2010 04:50 AM - edited 03-24-2010 04:51 AM
And it is a useful habit to RTFM ....for the ping command enter "ping -?" in a cmd-window (I prefer "man ping" ... however that is in another world 😉
In my example the "-n 1" tell ping to only use one request so there is no meaningful average 😛
03-24-2010 10:54 AM