Jump to content
News about the LabVIEW Wiki! Read more... ×
Sign in to follow this  
James McAnanama

Ping with Labview

Recommended Posts

Is there an easy way to detect another computer on a network using Labview? (as opposed to System Exec & Ping).

I want my Labview app to periodically check the health of key computers on my network.

Share this post


Link to post
Share on other sites

If they have any ports open, then you can attempt to open a TCP connection to that computer and that port. If it doesn't timeout/crapout then the PC is running. As far as it's status, that's another issue all together

Share this post


Link to post
Share on other sites

There is a ping VI in the NI knowledge base somewhere. I also have one contributed by a generous sole.

However, can a small app be written for each of the key machines that sends a message every N seconds. If your monitor PC does not receive that message every N + a little bit, seconds, then the PC is dead or off the network. Sort of like a watchdog. You could use TCPIP or datasocket for a quicker implementation. As for the message, I'd get it to send it's IP address.

Share this post


Link to post
Share on other sites

I like the watchdog approach. However, some of the devices I am looking at are SBCs that are streaming data to another application, and they don't support multiple connections.

Thanks for reference to the NI Knowledge base. I guess I am stuck with sytem exec. This is fine - I am just surprised that LV doesn't have built in support for Ping.

Cheers,

James

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.