09-12-2011 04:52 AM
Its clear, i have a push button, when its triggered on, it should green the led (which occurs, no problems), but when triggered off, it should turn off the led immediately, (which doesnt happen), how is it done ?
Solved! Go to Solution.
09-12-2011 04:57 AM
Hello,
It's not easy to understand what your problem is with such a short description, can you post your VI or a screenshot of the block diagram so that it's easier for us to help you?
Trying to help
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 04:59 AM
uhhh, i forgot to attach it sorry.
09-12-2011 05:31 AM
do you have put your case structure inside a loop??????
09-12-2011 06:14 AM
explain more please. alok.p
09-12-2011 06:24 AM
if u have place your code inside a while loop ( for example ) the loop will continiously execute.
the true case waits for 5 sec. and then executes .
Rings any bell????????????
09-12-2011 06:39 AM
i understand , but how the loop will continously execute if the button is on its outside
09-12-2011 06:47 AM
try "Event Structure" for reacting on events.
09-12-2011 06:55 AM
i understand , but how the loop will continously execute if the button is on its outside
Yes the loop will not execute continiously, that's it .....remove timing vi and then you can see the action is executing as you want.
typically in your vi you are pusing your button and the only time you get for it is when waiting in true case.
09-12-2011 07:13 AM
i want different reactions, if boolean true, wait 5 seconds and execute, if false, then reset immediately, whats hard on that ?