Overview
This example VI demonstrates the use of System Exec to test the network connection of current PC.
Description
This VI uses System Exec.vi from Connectivity Library to ping the website yahoo.com. The returned value shows the internet connection availability on current PC. This VI shows an example of using System Exec.vi and further usage could be explored.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
HI really its very good.
Please click on like if you like it.
Your valuable suggestions are always welcome for the improvement.
Regards,
Prabhakant
Nice, but how often can you ping a website before you get blacklisted? Let's say I need to check for internet connection every 30 seconds.
Also, delay is noticeable. Can we set to ping only once instead of the standard 4 times?
change the command to ping yahoo.com -n 1.
now it will ping only once
Very good idea!