I have a computer running Win98 monitoring a testing machine. The readings are via the parallel port using a Pico adaptor and VB5. The 3.3v from the parallel port via a transistor and 2 relays (one is latching), switch the machine motor. The idea is, that on completion of the test or if the power fails and the computer reboots, the program is exited and the test machine motor switched off.
I can't seem to find a method in VB to achieve either exiting the program or switching off the computer.
Red Flag Submitted
Thank you for helping keep Eng-Tips Forums free from inappropriate posts. The Eng-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Eng-Tips forums is a member-only feature.