Go to Post "When you lose you don't say anything. When you win you say even less." - Clinton Bolinger [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 20-02-2011, 21:35
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
our solenoids are not working.

we are using a double solenoid to control our claw, and it isnt working. i believe i have programmed it correctly but i wanted someone to double check.

here is my code. when i press button 5 it should extend the claw, and when i hit button 4 it should retract the claw. although nothing actuates, when i hit a button the corresponding side of the solenoid lights up.

thanks for help.

https://picasaweb.google.com/lh/phot...t=d irectlink
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2011, 22:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: our solenoids are not working.

Your code looks okay, although the case statements are superfluous.
I assume the case statements just echo the button states in the False cases, too.

P.S.
Check the polarity of the solenoids connection to the solenoid breakout.
If the connector is reversed, the solenoid won't work as advertised.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-02-2011 at 09:33.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2011, 22:53
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: our solenoids are not working.

Quote:
Originally Posted by Thundrio View Post
we are using a double solenoid to control our claw, and it isnt working. i believe i have programmed it correctly but i wanted someone to double check.

here is my code. when i press button 5 it should extend the claw, and when i hit button 4 it should retract the claw. although nothing actuates, when i hit a button the corresponding side of the solenoid lights up.

thanks for help.

https://picasaweb.google.com/lh/phot...t=d irectlink
have you tried to manually activate the valves?
Do you see any indicator lights on either side?
Do you hear any clicking when you try and activate the valve?
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2011, 23:01
Garten Haeska's Avatar
Garten Haeska Garten Haeska is offline
Registered User
AKA: Garty
FRC #2861 (Infinity's End)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Lake City, MN
Posts: 219
Garten Haeska has a spectacular aura aboutGarten Haeska has a spectacular aura about
Re: our solenoids are not working.

Allthough i dont really know how to program in labview nor really read labview code, i had this same problem yesterday at a scrimmage, What was wrong was that in our code we were calling for two seperate solenoids, but instead we were supposed to call for a single "doublesolenoid" and it worked after that, no we just hold down button "2" and our grabber is held open, even though this will be in java it might help.

if(leftStick.getRawButton(2))
{
Fluffy.feed();
grab.set(DoubleSolenoid.Value.kForward);
Fluffy.feed();
}
else
{
Fluffy.feed();
grab.set(DoubleSolenoid.Value.kReverse);
Fluffy.feed();

dont worry about "Fluffy" it is our watchdog and it needs to be fed more than normal for some reason.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2011, 02:00
Nirvash's Avatar
Nirvash Nirvash is offline
Registered User
AKA: Bryan
FRC #4676
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Orland Park, IL
Posts: 221
Nirvash has a spectacular aura aboutNirvash has a spectacular aura about
Re: our solenoids are not working.

Your code looks ok to me, just you don't need the case statements. If you are using 24v solenoids make sure your solenoid breakout is hooked up to 24v and not 12v.
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


All times are GMT -5. The time now is 20: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