View Single Post
  #2   Spotlight this post!  
Unread 08-03-2010, 18:58
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Need help with timing auton

The "easy" way to do this is probably to use Autonomous Independent and string together a sequence using the error terminals of each VI.

Use the Watchdog Delay & Feed VI for delays between events to keep the watchdog happy.

So you want to connect the error wires of the VIs in the sequence you want to run.

Ex.

Arcade Drive VI (Set to 1 for forward)
|
V
Watchdog Delay & Feed (Drive forward time)
|
V
Arcade Drive VI (Set to 0 for stop)
|
V
Solenoid Set (Set to 1 to extend)
|
V
Watchdog Delay & Feed (Wait for firing to finish)
|
V
Solenoid Set (Set to 0 to retract)

To repeat this sequence exactly you can either use a loop or you can just keep stringing elements onto the sequence, allowing you to make the sequence slightly different for the further iterations.

If this isn't clear enough, let me know and I can probably post up a sample VI for you.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote