Stuart,
I'm confused are you asking advice on how to toggle a voltage value on a
programmable power supply for a predetermined amount of time? If this is
true and you want the simplest answer, use a state machine. This is a
while loop with a case statement inside. Without going into elaborate
details, the while loop is constantly checking on the state of a user
input (could be boolean switch). Depending on the state during that
iteration the case will be set to the appropriate value.
In your case, you could have a blank case for when the user hasn't
pressed anything while the other case will have your voltage control
sequence (turn output OFF, set voltage, turn output ON, wait 20 seconds,
turn output OFF, set voltage to zero). (you may want to conside
r the
myriad of ways to break that 20 second delay if the user needs to)
Clue me in if my reply was has nothing to do with what you were asking.
- Kevin
In article <506500000008000000DD5A0000-1027480788000@exchange.ni.com>,
"stu22" wrote:
> Hi, just a simple, but never any use for untill now. Basically a
> sequence to have a voltage on for 20 seconds,then time out and switch
> back to zero voltage. It also needs to be controled by the use of a case
> structure e.g.on/off.
>
> Thanks Stuart