LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset switch level

I am trying to use a VI to control a high voltage power supply amog other things.  For safety reasons I want to power supply to be switched off at when the VI first starts running, regarless of the state it was when it last stoped.  I can I change the level of the boolean switch that controls the power supply automatically at startup?  Any help is welcomed.

 

Thank you.

0 Kudos
Message 1 of 9
(3,015 Views)
You can write a False constant to the local variable of your boolean switch as part of the first frame of your program so that it executes before the rest of your program executes.
Message 2 of 9
(3,011 Views)

My first question to you is what type of architecture are you using?

 

if you are using an event structure just use the stop event to reset your switch and if you are using a case structure just wire a constant in what ever case is your ending case

 

ravens fan beat me to it.

Message Edited by Harold Timmis on 10-22-2009 10:07 AM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 3 of 9
(3,008 Views)
Obviously I'm new with Labview.  When I try to connect the false constant on the same node as the switch I get an error, because they are two controls, how do I solve that?  Thanks for your quick responses by the way.
0 Kudos
Message 4 of 9
(3,000 Views)
ravens fan suggested to you the use of a local variable right click the control and go to create and select local variable
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 5 of 9
(2,994 Views)
It is hard to know what you are trying to do by just reading words.  Please post a copy of your VI so we can see.
0 Kudos
Message 6 of 9
(2,992 Views)
Hope this helps.  Thanks
0 Kudos
Message 7 of 9
(2,984 Views)
well instead of the for loop you should use a case structure
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 8 of 9
(2,981 Views)
Ok, I will give that a try!
0 Kudos
Message 9 of 9
(2,978 Views)