Go to Post Wow. Just wow. Never did I think the mentor built robot debate would make it on to a tv show. - ASD20 [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 21-02-2010, 18:39
Team1908 Team1908 is offline
Registered User
FRC #1908
 
Join Date: Jan 2010
Location: Eastville, VA
Posts: 17
Team1908 is an unknown quantity at this point
Sequence of solenoids triggered by a button?

Our programmers are trying to code a sequenced structure that will change the states of some solenoids in a certain order. They want to do this so that the next set of solenoids fires only after a certain amount of time has passed after the previous set of solenoids has fired. They are also considering having one step wait on an input from a digital input change before the next step, along with the rest of the process, continues.

What would be the simplest way to program this for the teleoperated period? Also, what would be the best way to program this for the autonomous round, so that the robot can perform the process by itself?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2010, 18:58
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: Sequence of solenoids triggered by a button?

Im not sure what language your using, but we're doing the same thing in labview.

Basically i have a case structure being controlled by an Enum control. The enum is first created as a constant in the init phase of teleop. for ex., we have it with 7 steps

1. ready to fire
2. wait .5 seconds
3. retract kicker (piston 1)
4. wait 1 second
5. extend trigger (piston 2)
6. wait 1 second
7. extend kicker (piston 1)

during init, a local variable is set to 1.Ready to fire

then, in teleop, we have the variable control a case structure. in each case we perform the functions nessacary and set the variable to the next case. When its in 1.ready to fire, it stays there until a button is pressed, then it retracts our trigger and continues through the cases again.

attached is a zip contain 2 pictures to help plus a 'kicker proof of concept vi' the vi was made in labview 2009 im afraid though.
Attached Files
File Type: zip kicker proof of concept.zip (64.9 KB, 41 views)
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2010, 19:25
Team1908 Team1908 is offline
Registered User
FRC #1908
 
Join Date: Jan 2010
Location: Eastville, VA
Posts: 17
Team1908 is an unknown quantity at this point
Re: Sequence of solenoids triggered by a button?

This is exactly what we need! Not only are we using LabView, but we have a similar mechanism fired by four solenoids that need to extend and retract in almost the same pattern! We'll program it immediately tomorrow afternoon. Thank you so much!
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2010, 19:30
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: Sequence of solenoids triggered by a button?

no problem. just keep in mind, i forgot to say that the example vi i gave you obviously just runs on the computer, but it responds to button 1 on the first joystick plugged into the computer. (i usually test at home with a 360 controller )
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2010, 21:33
kavisiegel kavisiegel is offline
Registered User
FRC #0061 (The Shifters)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Milford MA
Posts: 37
kavisiegel is an unknown quantity at this point
Re: Sequence of solenoids triggered by a button?

There's always more than one way to do things, so I figured I'd post my method of doing this as well.
Attached Thumbnails
Click image for larger version

Name:	kick.PNG
Views:	55
Size:	33.6 KB
ID:	8749  
__________________
www.team61.com
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
Victor lights out of sequence matt99199 Electrical 4 10-02-2009 10:11
Fibonacci Sequence ComradeNikolai Math and Science 19 11-11-2008 21:55
[FVG]: Opening Sequence Joshua May FIRST-related Organizations 16 24-06-2004 00:00
RC bootup sequence Venkatesh Programming 17 18-11-2003 20:56
PB_Mode Sequence DKolberg Programming 3 17-03-2003 10:54


All times are GMT -5. The time now is 22:05.

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