Go to Post So... the question is this: Does Grady keep his stuffed animals on his Barbie House for playtime, or in his bed to help him go sleepy-pie at night-night time? - Andy Baker [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-02-2010, 17:02
team2987 team2987 is offline
Registered User
FRC #2987
 
Join Date: Feb 2010
Location: Farmington
Posts: 9
team2987 is an unknown quantity at this point
Exclamation Help Solenoid Programming

My team is using the solenoid valve from Fesco the one VUVG-L10-V52-T-M7-IP3. As you know it has one intake that pushes air into the pnuematic cylinder and pulls it out of the cylinder. We are trying to program it so we can push air in and suck air out for a kicking mechanism. I have the compressor working but I can not get the button to trigger either pushing air in or pulling air out of the cylinder. I was wondering if someone could help with this issue... Pictures of a solution using labview would be awesome. We have the intake into the cylinder connected to solenoid port 1 and the outake to port 2.... hope you can help and sorry for the spelling.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2010, 18:02
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Help Solenoid Programming

(kinda) same problem bro.

We have the air compressor hooked up to a tank hooked up to a solenoid hooked up to a piston-type-firing-thing. We know the solenoid works because we can push the button, and the piston thing shoots out, then back.

I have REALLY basic code for solenoids. Basically:
I have a get ref. for solenoids outside THE loop in robot main. inside, i wired a boolean switch(i can change it to true/false on the front panel) to the Solenoid Set.vi
When we run the code, the piston thing doesn't shoot out, so it is a code error. Just like team2987 said above, a screenshot of working solenoid code would help us tremendously.

Edit(cause i know someone will tell me this): yes, everything IS wired correctly.
And I do not have any examples installed in LabView(either that, or i cant find em), so i cannot test the "solenoid with compressor example vi" and see if it works.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award

Last edited by umangv620 : 18-02-2010 at 18:05.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2010, 18:07
reversed_rocker's Avatar
reversed_rocker reversed_rocker is offline
Alumni
AKA: Ken Condon
FRC #0706 (Cyberhawks)
Team Role: College Student
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Hartland
Posts: 69
reversed_rocker is on a distinguished road
Re: Help Solenoid Programming

solenoids are programmed a little differently that the drive, joysticks, analog inputs, or digital inputs that you're used to so i'll just write the code you need to initialize it and then give you an example of how to let air in and how to let air out. I'm going to assume that you're using the simple robot template, if you arent this code will still work but it will be placed in a different part of your code


//defines the pointers as part of the solenoid class, goes in class RobotDemo: public Simple Robot {

Solenoid *kicker_kick;
Solenoid *kicker_return;

//initializes solenoids and gives them a channel on the relay section of the IO board goes in RobotDemo(void):

kicker_kick = new Solenoid(1);
kicker_return = new Solenoid(2);

//pushes the kicker out, remember not to let the two sides of the solenoid fight each other, goes into the while(IsOperatorControl()) {

kicker_return->Set(false);
kicker_kick->Set(true);

//pulls the kicker back in
kicker_kick->Set(false);
kicker_return->Set(true);
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2010, 19:09
team2987 team2987 is offline
Registered User
FRC #2987
 
Join Date: Feb 2010
Location: Farmington
Posts: 9
team2987 is an unknown quantity at this point
Re: Help Solenoid Programming

Sounds good was wondering if you could post a picture of it because I'm new to programming and seeing something in text confuses me a bit so apicture diagram would be greatly appreciated thanks in advance! Ummmm have been trying to create another solenoid in the Begin.vi but for some reason I get an enumeration error when calling the channel it is set to solenoid 2 wondering if someone had a solution to this?

Last edited by team2987 : 18-02-2010 at 19:28. Reason: (found somehting new)
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2010, 19:27
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Help Solenoid Programming

Quote:
Originally Posted by reversed_rocker View Post
solenoids are programmed a little differently that the drive, joysticks, analog inputs, or digital inputs that you're used to so i'll just write the code you need to initialize it and then give you an example of how to let air in and how to let air out. I'm going to assume that you're using the simple robot template, if you arent this code will still work but it will be placed in a different part of your code


//defines the pointers as part of the solenoid class, goes in class RobotDemo: public Simple Robot {

Solenoid *kicker_kick;
Solenoid *kicker_return;

//initializes solenoids and gives them a channel on the relay section of the IO board goes in RobotDemo(void):

kicker_kick = new Solenoid(1);
kicker_return = new Solenoid(2);

//pushes the kicker out, remember not to let the two sides of the solenoid fight each other, goes into the while(IsOperatorControl()) {

kicker_return->Set(false);
kicker_kick->Set(true);

//pulls the kicker back in
kicker_kick->Set(false);
kicker_return->Set(true);
This thread is posted in the LabView section. That is def. not labview code.
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2010, 19:30
team2987 team2987 is offline
Registered User
FRC #2987
 
Join Date: Feb 2010
Location: Farmington
Posts: 9
team2987 is an unknown quantity at this point
Re: Help Solenoid Programming

So no help for me using lab view?
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2010, 20:57
ngould ngould is offline
Registered User
FRC #1572
 
Join Date: Feb 2010
Location: San Diego
Posts: 3
ngould is an unknown quantity at this point
Re: Help Solenoid Programming

To team 2987,

Im new to programming too, but i'm pretty sure i fugured out the enumeration error for adding solenoids.

when you have your solenoid icon that says Open on it (should be green, just like the other one) on the left side hover over the edge until the little box thing says solenoid channel. right click on that and go to create -> constant. this will give you the option of choosing what number solenoid you have. be sure that if you add more solenoids to the begin etc... VI that you add the same amount with the same names to the rest of your VIs...

hope this helps.

Tasha
Attached Thumbnails
Click image for larger version

Name:	how to add solenoids.jpg
Views:	93
Size:	102.0 KB
ID:	8716  
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2010, 21:28
team2987 team2987 is offline
Registered User
FRC #2987
 
Join Date: Feb 2010
Location: Farmington
Posts: 9
team2987 is an unknown quantity at this point
Re: Help Solenoid Programming

Yea thanks much ngould I believe I have everything figured out now and I hope when I test it on the bot tommorow the kicker kicks! I'll just have to wait and see let me know if you got any questions I'm getting the hang of this...
Reply With Quote
  #9   Spotlight this post!  
Unread 18-02-2010, 22:23
JP Carlin's Avatar
JP Carlin JP Carlin is offline
Registered User
FRC #2487 (Mechanical Animals)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Sayville NY
Posts: 42
JP Carlin is on a distinguished road
Re: Help Solenoid Programming

i've been trying for a few days trying to get our solenoid working so that it could lock our robot in place after pulling itself up and i think i was able to make it work doing the same thing. Although i wont be able to test it until tomorrow i'm glad that i figured it out.
Reply With Quote
  #10   Spotlight this post!  
Unread 19-02-2010, 08:51
team2987 team2987 is offline
Registered User
FRC #2987
 
Join Date: Feb 2010
Location: Farmington
Posts: 9
team2987 is an unknown quantity at this point
Re: Help Solenoid Programming

As of right now we have have a single solenoid attached to our breakout with the cord connected to the intake in port one and the cord connected to the outake in port two. We are trying to use this setup as a pneumatic kicker that pushes the arm out of the cylinder and pulls the arm in to reset. I feel my programming is the flaw. I'll have pictures up later but for right now a description of what i have in labview. In begin.vi I have two solenoids both set to "solenoid 1" and then set to slot 8 and 7 because it doesnt allow slot 1 and 2. In finish.vi I have the "kick solenoid" and "return solenoid" closing. Then in teleop to achieve the push button mechanism I'm calling the joystick and then calling button 4. Then I have a true false system setup so that when button 4 is true it kicks and when button 4 is false it returns, or atleast I think i have it that way.... I would love it if someone could put up labview diagrams of a working solenoid button press system to kick and return. Thnaks in advance!
Reply With Quote
  #11   Spotlight this post!  
Unread 19-02-2010, 16:22
team2987 team2987 is offline
Registered User
FRC #2987
 
Join Date: Feb 2010
Location: Farmington
Posts: 9
team2987 is an unknown quantity at this point
Re: Help Solenoid Programming

UPDATE: We now know signal is going to our solenoid from the button pushes how ever nothing is happening as in the valves arent actuating and dont seem to be anyone have a possible solution?
Reply With Quote
  #12   Spotlight this post!  
Unread 19-02-2010, 19:17
JP Carlin's Avatar
JP Carlin JP Carlin is offline
Registered User
FRC #2487 (Mechanical Animals)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Sayville NY
Posts: 42
JP Carlin is on a distinguished road
Re: Help Solenoid Programming

i have been able to get the solenoid only to extend out by programming it in a case structure and controlled by a button on the joystick. although we are using the solenoid only to activate a pneumatic in the end to lock a system in place while lifting ourselves, it would be nice to figure out a way to program it to retract by pushing a button so we do not have to do it manually after the competition is over or just in case it is accidentally released we can retract it so we can still lift ourselves at the end.
Reply With Quote
  #13   Spotlight this post!  
Unread 19-02-2010, 20:13
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: Help Solenoid Programming

Here's a quick sketch of one way to extend with one button and retract with another.
The False cases do nothing.
Attached Thumbnails
Click image for larger version

Name:	CylinderHowTo.jpg
Views:	96
Size:	17.2 KB
ID:	8722  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-02-2010 at 20:33.
Reply With Quote
  #14   Spotlight this post!  
Unread 20-02-2010, 22:36
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: Help Solenoid Programming

Quote:
Originally Posted by team2987 View Post
UPDATE: We now know signal is going to our solenoid from the button pushes how ever nothing is happening as in the valves arent actuating and dont seem to be anyone have a possible solution?
How do you know the signal is getting to the solenoid?

The pneumatic solenoid valves are "pilot activated" and will not move unless they have enough pressure. Make sure there's 40 PSI or more getting to them.
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
Labview Solenoid Programming 3p1c w1n Programming 12 12-02-2010 17:29
Solenoid Programming Issue. Dr. Manhattan Pneumatics 2 10-02-2009 17:42
solenoid programming holty531 Programming 0 10-02-2008 16:17
Programming a Solenoid Brigander Pneumatics 4 17-02-2007 14:06
Solenoid Programming duckshepherd Pneumatics 1 17-02-2003 09:15


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

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