DidikChandra Posted September 15, 2008 Report Share Posted September 15, 2008 Hello everyone, I'm trying to figure out how to disable all PC ports that maybe used to leak information from the PC. I'm using a PC to create a HMI that connects to a PLC. My LabVIEW program directly starts when windows is starting up. I'm not using any keyboard or mouse, instead I'm using a modified 19" LCD screen to a touch screen panel. So any unused ports I should disable or maybe block certain feature connected to it (like for USB I should block feature for Flash Drive, USB Hub, Keyboard, Mouse but allowing only the Touch Panel Interface). I've found some third party utility for it, but I'd prefer to have LabVIEW to be in control of everything. Second, since the PC is not allowed to be used for anyother purpose, then shuting down the PC should also be from LabVIEW ... Now I'm completely blind on how to do that , please shine some light on me. Best regards, Didik Chandra Quote Link to comment
DidikChandra Posted September 15, 2008 Author Report Share Posted September 15, 2008 Hello everyone, I'm trying to figure out how to disable all PC ports that maybe used to leak information from the PC. I'm using a PC to create a HMI that connects to a PLC. My LabVIEW program directly starts when windows is starting up. I'm not using any keyboard or mouse, instead I'm using a modified 19" LCD screen to a touch screen panel. So any unused ports I should disable or maybe block certain feature connected to it (like for USB I should block feature for Flash Drive, USB Hub, Keyboard, Mouse but allowing only the Touch Panel Interface). I've found some third party utility for it, but I'd prefer to have LabVIEW to be in control of everything. Second, since the PC is not allowed to be used for anyother purpose, then shuting down the PC should also be from LabVIEW ... Now I'm completely blind on how to do that , please shine some light on me. And I'm using LabVIEW 8.0.1, Windows XP Pro SP3 Best regards, Didik Chandra Quote Link to comment
LAVA 1.0 Content Posted September 15, 2008 Report Share Posted September 15, 2008 QUOTE (DidikChandra @ Sep 13 2008, 06:59 PM) Second, since the PC is not allowed to be used for anyother purpose, then shuting down the PC should also be from LabVIEW ... Now I'm completely blind on how to do that , please shine some light on me.And I'm using LabVIEW 8.0.1, Windows XP Pro SP3 Best regards, Didik Chandra You can shutdown Windows from LabVIEW using the system command 'shutdown'. In LabVIEW make a System Exec call 'shutdown -s -t 1' Quote Link to comment
Anders Björk Posted September 17, 2008 Report Share Posted September 17, 2008 QUOTE (LV_FPGA_SE @ Sep 14 2008, 04:50 AM) You can shutdown Windows from LabVIEW using the system command 'shutdown'. In LabVIEW make a System Exec call 'shutdown -s -t 1' Devcon from microsoft seem to be useful, see this http://www.tomshardware.co.uk/forum/29642-...rive-just-click Quote Link to comment
mprim Posted September 24, 2008 Report Share Posted September 24, 2008 When looking for information on how to do something new try Googling your question first. Googling "Windows Shutdown" I quickly found: http://www.aumha.org/win5/a/shutcut.php The best place to look for information on native Windows commands is on the Microsoft Developer Site. Bluesky QUOTE (DidikChandra @ Sep 13 2008, 03:53 PM) Hello everyone,I'm trying to figure out how to disable all PC ports that maybe used to leak information from the PC. I'm using a PC to create a HMI that connects to a PLC. My LabVIEW program directly starts when windows is starting up. I'm not using any keyboard or mouse, instead I'm using a modified 19" LCD screen to a touch screen panel. So any unused ports I should disable or maybe block certain feature connected to it (like for USB I should block feature for Flash Drive, USB Hub, Keyboard, Mouse but allowing only the Touch Panel Interface). I've found some third party utility for it, but I'd prefer to have LabVIEW to be in control of everything. Second, since the PC is not allowed to be used for anyother purpose, then shuting down the PC should also be from LabVIEW ... Now I'm completely blind on how to do that , please shine some light on me. Best regards, Didik Chandra Quote Link to comment
robijn Posted September 24, 2008 Report Share Posted September 24, 2008 QUOTE (DidikChandra @ Sep 14 2008, 01:53 AM) disable or maybe block certain feature connected to it (like for USB I should block feature for Flash Drive, USB Hub, Keyboard, Mouse but allowing only the Touch Panel Interface). I've found some third party utility for it, but I'd prefer to have LabVIEW to be in control of everything.Second, since the PC is not allowed to be used for anyother purpose, then shuting down the PC should also be from LabVIEW ... Hi, What you want is perfectly possible from LabVIEW by calling the microsoft command line tool devcon, which is freely available. I've used it in the past to detect inserted USB devices, but you can enable, disable, install, uninstall all kinds of devices with it. It can also reboot your PC. Joris Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.