LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check whether PC is online

Hi,
 
Any idea how the labview program can check whether the PC is online or not, before opening the Web browser?
 
Any help will be appeciated,
 
regards,
Clement
0 Kudos
Message 1 of 5
(5,264 Views)
Hello,

You mean you want to know if the PC that is running the program has a web access ?
I have never used any network function but I saw VIs to connect to a POP3 mailbox, maybe you could use one of these just to try to get connectto a server and see if you get an error. Disconnect your PC from the network see what error code and string you get and implement this in your program.
This is certainly not the nicest solution, but an idea...


you said "ANY help would be appriciated" 🙂 ... just kidding... hope the idea will somehow lead you to a solution.

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 5
(5,247 Views)
Here is a vi that uses a .vbs script file to determine if the network cable is plugged in to the computer. You need to be running windows and have scripting enabled. I ran this on my WinXP media center machine. I had to change the location of where windows finds the cscript.exe file versus my win2000 computer at work. This is in 7.0 format.
0 Kudos
Message 3 of 5
(5,220 Views)
0 Kudos
Message 4 of 5
(5,209 Views)

Hi Titoyu, UncleBunp and Bogdani

 Thanks for your helpful tip.

Clement

0 Kudos
Message 5 of 5
(5,165 Views)