|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Re: Every X seconds....
^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? |
|
#3
|
|||
|
|||
|
Re: Every X seconds....
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 |
|
#4
|
|||||
|
|||||
|
Re: Every X seconds....
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? |
|
#5
|
||||
|
||||
|
Re: Every X seconds....
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 |
|
#6
|
|||
|
|||
|
Re: Every X seconds....
Thanks alot guys!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 1519 - Video of 10 Laps in 60 Seconds... | Ken Streeter | General Forum | 24 | 22-02-2008 14:14 |
| Robot Drive for 10 seconds | penguain | Programming | 8 | 20-01-2008 20:09 |
| Backup battery only lasts 10 seconds? | dawilliams | Control System | 3 | 21-01-2007 13:33 |
| pic: Four Seconds | CD47-Bot | Extra Discussion | 9 | 30-03-2003 15:31 |
| About the first 10 seconds | stuy694 | Rules/Strategy | 2 | 04-01-2003 14:35 |