Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Autonomous problem (http://www.chiefdelphi.com/forums/showthread.php?t=134991)

Jesus Perea 21-02-2015 12:17

Autonomous problem
 
1 Attachment(s)
Hi!
Good morning we have a problem with our autonomous.
How can we put time to an action in our program here is our code:

Mark McLeod 21-02-2015 12:21

Re: Autonomous problem
 
Add a Wait for a delay inside the frame, like so:

Jesus Perea 21-02-2015 12:34

Re: Autonomous problem
 
We have to put safety config to the piston and the motors that we want to activate?

Mark McLeod 21-02-2015 12:39

Re: Autonomous problem
 
No, you don't need the safety config calls for the motor or solenoid you are using.
That picture of mine is only a generic example.

Just add a Wait in the Autonomous code that you have there.
You can add a wait in the first frame if you want to give the solenoid more time to react before the motor starts, and another wait in the motor frame to tell it how long to run.
Without the Wait(s) the code will execute as fast as it possibly can.

Note: a wait is fine for Autonomous and in Periodic Tasks, but don't ever use them in teleop.vi


All times are GMT -5. The time now is 10:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi