LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing state of led

Solved!
Go to solution

Hi, I have a simple program here that I want the LEDs to default to OFF when the program finishes.  I tried using gates to accomplish this, but because of the delays input into the gates, it would throw off all my timing functions.  What can I do so that when the program finishes it will turn off the LEDs? 

 

I'm attaching the code, I'm using 8.2 right now.

 

Thanks for any help.

0 Kudos
Message 1 of 6
(2,667 Views)
Solution
Accepted by topic author JJJOndae
Easiest way is to use a local outside of the loop.
Message 2 of 6
(2,654 Views)
PERFECT!!  I don't know why I didn't think of that!  Thank you so much 🙂
0 Kudos
Message 3 of 6
(2,651 Views)

JJJOndae wrote:

I tried using gates to accomplish this, but because of the delays input into the gates, it would throw off all my timing functions.


 

Sorry my ignorance, but what are "gates" in this context?
0 Kudos
Message 4 of 6
(2,628 Views)
By gates, I meant using the boolean logic gates, such as logic AND, OR, NOR, ect.  But when I had a delay going to one of the inputs, the program originally would wait the entire delay until producing a true or false, when I actually needed a true or false at precise times.  This way however simplifies all that completely.
Message Edited by JJJOndae on 05-23-2010 05:13 PM
0 Kudos
Message 5 of 6
(2,615 Views)
You can also use an invoke node and link "Reinitialize to default".
0 Kudos
Message 6 of 6
(2,549 Views)