Every X seconds....

Ive been trying to figure this out and I cant. I want to decrease the value by one on a numeric object and cant figure it out. I tried loops, and inside the loops putting a elapsed time object, setting the time to 0.5 and unchecking auto reset, and having it reset when the time hits 1.0. That part works. Now I want to wire the time elapsed green wire to a relay enable. Then for input I wire the numeric object. For output I put a wire to the +1 numeric object, and from there back to the numeric object. It works perfectly without the relay, other then the fact it wont stop, but with it wont! I also tried hooking up LED and a switch to the signal/result ports and that works fine because the light would flash on and off. Its something with the numeric.

Any help would be pure AWSOMEness

^guess that wasn’t to descriptive. Anyway I have this:

And I want it so that when the switch is false so is the LED. I tried changing the case structure to false but then everything vanishes. I know its still there…but under true. Is there a way the LED could be in bot true and false?

I’d love to help, but I’m afraid I don’t understand what you are trying to accomplish. One thing I think will help is to pull Boolean 2 outside of the case. That way you can write to it when the Button is False.

Greg McKaskle

If you want the LED to be controllable from both cases, you don’t want to put it inside the case structure. You want the LED to be outside, with a tunnel output from the case to the LED, and the false case just needs to connect a false constant to it.

I really don’t understand your goal here, though. Can you describe the desired action in terms of what it needs to do, leaving out any mention of how you want to do it?

Brandon,

I am guessing that you are trying to create a sequence of actions such as in an autonomous mode of operation.

I would strongly suggest that you view Ben Zimmer’s Tip Jar tutorial series starting with Tip Jar #5. By the time you get through #10, you will understand how to use the Delay-and-Feed vi, how to understand data flow, where to put your autonomous code, how to sequence operations and how to utilize data items such as the Turn Off Time.

I would hope that this will answer many of your questions.

Regards,

Mike

Thanks alot guys!