LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I disable LAN connection while my LabVIEW application is running?

I have my PC connected to the LAN network. Every once in a while, a windows patch executes and restarts the PC while my LabVIEW application is running. I would like to disable the PC link to the LAN everytime I run my LabVIEW application, then restore it when I exit LabVIEW.
 
Thanks.
 
~Papa
0 Kudos
Message 1 of 5
(3,156 Views)
The simplest method is to unplug your ethernet connection.
0 Kudos
Message 2 of 5
(3,137 Views)
That's certainly an effective solution. If you want to disable all network traffic. If your main problem is Windows update, you just need to turn off the Automatic Updates service. That's the item that notifies you of updates. You're probably in a network environment that has group policies set up so that computers install patches and then reboot the computer regardless of what the user is doing. Very bad IT policy. I have a similar group policy set up in the network here at work, but I have the patches downloaded and installed at 3 AM, and the computers will reboot only if nobody is logged in.

Anyway, you can stop the Automatic Updates service with the "net stop" command. So, use System Exec to execute the following command: "net stop wuauserv" at the start of the application, and then use it again to execute "net start wuauserv" when the program completes:



Note: This may violate your IT policy. You may also need administrative rights on the computer to do this - this depends on your version of Windows.


Message Edited by smercurio_fc on 11-09-2007 01:20 PM
0 Kudos
Message 3 of 5
(3,132 Views)
That would work unless the system policy controlled by the comapny allowed you to do that. In any case, it has been documented that there are updates occurring on the computer regardless to the system policy. This has been documented with regard to WGA.
0 Kudos
Message 4 of 5
(3,117 Views)
Search the forums for devcon references.
0 Kudos
Message 5 of 5
(3,086 Views)