|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Need help with Elapsed Time VI
sorry for the disconvenient , I got the pic for what inside the button 1- true case ( it is too big, i can't post the whole code up). Basically, on the left side, the first 2 wires are the solenoid references, the 3rd is the watchdog reference, the last one is for a motor. What supposed to happen is the solenoid goes out, the motor run forward 4 sec, the solenoid goes back in then the motor run backward 4 sec. It always work perfectly the first time I press button 1, but the second time , or third, it doesn't: The solenoid goes out, motor run for 1 or 2 sec then the solenoid goes in and then motor stop, not running at all. Thanks for replying me.
![]() |
|
#2
|
|||||
|
|||||
|
Re: Need help with Elapsed Time VI
I'm not entirely sure where and when you're trying to do this. I think you can make it do what you want by removing the while loops, deleting the Elapsed Time, replacing the watchdog feed inside the loops with watchdog "feed and delay", and using the error inputs and outputs of the various vi's to control the order of events. If you have last year's default LabVIEW code to look at, its Autonomous Independent shows how to do it.
|
|
#3
|
|||
|
|||
|
Re: Need help with Elapsed Time VI
I solved it this afternoon. I was over think the problem. You are right Alan, I don't need the loop and the elapse time vi, but I have to leave the watchdog feed tinggy( or else it will say watchdog not fed on the driver station). I just put a delay vi, set it to 4 sec and the set motor speed. Everything is working now. Thanks for helping me, both of you.
|
|
#4
|
|||||
|
|||||
|
Re: Need help with Elapsed Time VI
Quote:
The Watchdog Delay and Feed will feed the Watchdog periodically as it delays. |
|
#5
|
|||
|
|||
|
Re: Need help with Elapsed Time VI
No, I'm talking about the time delay VI, not the watchdog delay vi.
|
|
#6
|
|||
|
|||
|
Re: Need help with Elapsed Time VI
Right... and what he is saying it to use the delay and feed VI instead of a delay and a feed separately.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Teleop Elapsed Time available in Dashboard? | Ziaholic | NI LabVIEW | 0 | 21-02-2010 23:13 |
| Finding the Elapsed Time in a Match | davidalln | C/C++ | 1 | 08-02-2010 23:58 |
| FIRST TIME USING C++, Need help! | DarKCroNo | Programming | 8 | 07-02-2010 00:53 |
| Tracking Elapsed Time | 7-11number1 | Programming | 4 | 13-01-2008 16:16 |
| need help with time zone! | Ken Leung | General Forum | 6 | 25-06-2001 12:44 |