Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   our solenoids are not working. (http://www.chiefdelphi.com/forums/showthread.php?t=92510)

Thundrio 20-02-2011 21:35

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

Mark McLeod 20-02-2011 22:34

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.

wilsonmw04 20-02-2011 22:53

Re: our solenoids are not working.
 
Quote:

Originally Posted by Thundrio (Post 1027904)
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?

Garten Haeska 20-02-2011 23:01

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.

Nirvash 21-02-2011 02:00

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.


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

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