Click here to Skip to main content
15,889,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi friends
in vb6 how to write code to turn on /off power supply

my project name is lap (lyman alpha photometer
i am using vb6 to code to turn on/off power power interface to lap to draw power

i want code to turn power interface
Posted
Updated 23-Mar-12 3:38am
v2
Comments
CPallini 23-Mar-12 9:03am    
Power supply of WHAT?
Sergey Alexandrovich Kryukov 23-Mar-12 22:26pm    
Is that not clear? It's the computer running the VB6 code turning power off, and, especially, on -- most impressive part. :-)
--SA

1 solution

Depends on the power supply that you want to turn on and off.

If it is the PSU for the PC you are running on, you can't. How do you expect to run software to turn on the power supply, when the power supply must be on for the software to run?

If it is an external power supply connected to the PC in some way, then you would be best talking to the manufacturers, as we would need to know a lot more info about how it is connected, what signalling methods you have, as so forth.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900