Go to Post In the end, we were successful, but the tale is one of such stupidity that it should be engraved in drool upon a failed math test. - AmLameBro [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2009, 21:10
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Creating a Delay in Actuating a Solenoid

We have two Pneumatic Solenoids that are actuated using the trigger button on either joystick. One solenoid controls a gate and the other solenoid controls a platform that can be tilted.

The goal is that we lower the gate about 500ms (1/2 sec) before the platform tilts.

Getting both solenoids to actuate at the same time is easy enough. However, getting one to actuate, then wait for 500ms and then actuate the second one is a more difficult problem.

If anyone has a starting point here we could use the help.

Sean
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2009, 21:51
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Creating a Delay in Actuating a Solenoid

Chain the error output of the first solenoid set to the error input of a "delay and feed" watchdog, then chain the watchdog's error output to the error input of the second solenoid set. That's a simple way to do sequencing with delays.

Is that a good starting point?
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2009, 22:19
TimeOut's Avatar
TimeOut TimeOut is offline
Registered User
AKA: Sean Kelly
FRC #0499 (The Toltechs)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: San Antonio, TX
Posts: 50
TimeOut is on a distinguished road
Re: Creating a Delay in Actuating a Solenoid

Yep, I'll give that a try when we hit the bot again on Monday.

Thanks!
Sean
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2010, 19:19
Team1268 Team1268 is offline
Registered User
FRC #1268
 
Join Date: Feb 2010
Location: Milwaukee, WI
Posts: 3
Team1268 is an unknown quantity at this point
Re: Creating a Delay in Actuating a Solenoid

Hi Alan and Timeout...

We are working with a similar programming senario... I am new to the idea of a "watchdog."

We want to program a button to trigger the first solenoid, wait two seconds, and trigger a second solenoid. When we wired up the watchdog as previously described, it loops like we got caught in an infinate loop.

I am not at school and cannot send a screenshoot right now. but I will post it ASAP. Is their another way to sequence besides using watchdogs in LV?
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2010, 02:38
Lumit Lumit is offline
Registered User
FRC #2521
 
Join Date: Jan 2010
Location: Oregon
Posts: 26
Lumit is an unknown quantity at this point
Re: Creating a Delay in Actuating a Solenoid

The delay and feed watchdog vi will freeze your motor control... This is for teleop, correct?
teleop is in a loop, and delays will shut down all control until it is done.

You'll probably want a state machine: http://frcmastery.com/try-me/state-machines/
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2010, 23:28
Team1268 Team1268 is offline
Registered User
FRC #1268
 
Join Date: Feb 2010
Location: Milwaukee, WI
Posts: 3
Team1268 is an unknown quantity at this point
Re: Creating a Delay in Actuating a Solenoid

Thanks for everyone's help... the frcmastery tutorial was key!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delay jasonpeinko Programming 8 18-01-2008 15:56
Delay Function Slick Programming 6 01-03-2007 22:56
EDU-MINI RC Solenoid Switching times and Delay time? Generalx5 Technical Discussion 0 25-01-2007 01:32
Delay Gal Longin Programming 1 09-12-2004 10:37
Creating no pressure with double solenoid? Combat Chuck Pneumatics 7 29-02-2004 22:45


All times are GMT -5. The time now is 21:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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