LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Am I being pinged?

I need a vi that tells me if I am being pinged by a specific computer.  I've tried several things with no luck.
Where do I start? Does anybody have a vi I can use?
Thanks
0 Kudos
Message 1 of 11
(4,668 Views)
The ping response is a system service that is independent from LabVIEW.
 
If you are running windows, you might be able to do something with WinPCAP, see e.g.:
 
 
 
What do you actually want to do with all this?
0 Kudos
Message 2 of 11
(4,651 Views)
I'm running a process on one machine (Linux) and when the process is done, I need to move a file over to a MAC.  I've been having trouble doing this for reasons I don't  understand. ( I can transfer the file from the command line, but the same command in a script isn't working).  I thought that if I were to have the Linux machine ping the MAC when the process was done, I could pull the file over instead of trying to push it over. However, in order to do this, I need to tell that I  am being pinged.
0 Kudos
Message 3 of 11
(4,645 Views)
If both sides are running LaVIEW based code, you might just create some simple custom services in LabVIEW that exchange messages via UDP or datasocket.
 
In newer LabVIEW versions, you can also use network shared variables to communicate between the processes.


Message Edited by altenbach on 02-10-2008 03:40 PM
0 Kudos
Message 4 of 11
(4,642 Views)
No such luck. The linux side is running a c program.
0 Kudos
Message 5 of 11
(4,638 Views)
Hi exo,
 
You could set up a case structure based on using something like this post. Set your vi on the listening computer to have a loop continually check until it receives a tcp/ip command. Then stop the loop and receive the data. 
Regards,

Hillary E
National Instruments
0 Kudos
Message 6 of 11
(4,593 Views)

Hi exo,


Hillary_C_E wrote:
Hi exo,
 
You could set up a case structure based on using something like this post. Set your vi on the listening computer to have a loop continually check until it receives a tcp/ip command. Then stop the loop and receive the data. 


i don´t want to be the killjoy, but i think to listen on the tcp/ip connection will not be work, because a PING is a "Internet Control Message Protocol (ICM)" and this work on layer 3 while tcp works on layer 4.

Mike

0 Kudos
Message 7 of 11
(4,587 Views)
Mike, I think you are right. Beside having been unsuccessful in listening for a ping, I have found out that you need something call a sniffer.
Can I use any of the LabVIEW vi's to listen for an ftp or scp transfer?

Thanks
0 Kudos
Message 8 of 11
(4,573 Views)

Hi Exo,

For FTPing in LabVIEW, there are VIs. They are part of the Internet Toolkit. For more information you might want to look at the FAQ for the Internet Toolkit.

Regards,

Hillary E
National Instruments
0 Kudos
Message 9 of 11
(4,548 Views)
The easiest way I ound to do this was to use a packet snier called Ethereal. I am not sure if they have a Linux version but it works great.
Tim
GHSP
0 Kudos
Message 10 of 11
(4,511 Views)