View Single Post
  #4   Spotlight this post!  
Unread 13-02-2011, 13:01
bstites82 bstites82 is offline
Registered User
AKA: Blake Stites
FRC #2164 (multiple)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Harrisonville
Posts: 12
bstites82 is an unknown quantity at this point
Re: Double Solenoid problems

I can't post any screenshots, but I think I can explain simply enough what you want. Marks approach is more elegant than mine but mine is the one I'm familiar with so here goes. assuming that you are using the thin festo valves or equivalent that came in the KOP, and that you are running the from the pneumatics bumper in slot 7 or 8 on the crio. each valve has 2 solenoids, so in begin I open 2 single solenoids. lets call them sol1 and sol2. then we open the device refs in teleop for sol1 and sol2. so using one case structure, when button 6 is true we set sol1 off and sol2 on (or vise versa) and in the false case we set sol1 on and sol2 to off (or vise versa). this does require button 6 to be held, but it should get your solenoid actuating. if you want it to stay actuated look at the labview example for joystick button latching, and also check out FRCmastery for a video about shift registers and typedefs. hope this helps.
Reply With Quote