Go to Post ...isn't that part of the point? For high schoolers to do things they "could not have" by themselves? - AdamHeard [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 10-02-2011, 17:24
Max3651 Max3651 is offline
Registered User
FRC #3651
 
Join Date: Feb 2011
Location: Travelers rest
Posts: 1
Max3651 is an unknown quantity at this point
Double Solenoid problems

We are currently trying to get one button to control both sides of a double solenoid. The teleop VI is shown below, but we can only get one side to turn on and off, the other side of the double solenoid does not react at all. Please help.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	298
Size:	30.6 KB
ID:	10060  
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2011, 18:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: Double Solenoid problems

Are the opposite cases just blank or are they doing something as well?
Your code seems to be turning the same solenoid On and Off at the same time for Button 6.

If the solenoid is defined as a double solenoid, then you want to use Forward/Reverse, rather than On/Off.
Forward will be one position and Reverse the other.
Here's an example.

On activates the value, but off just stops it. Off doesn't reverse it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-02-2011 at 18:53.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2011, 18:47
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: Double Solenoid problems

Quote:
Originally Posted by Mark McLeod View Post
Are the opposite cases just blank or are they doing something as well?
Your code seems to be turning the same solenoid On and Off at the same time for Button 6.

If the solenoid is defined as a double solenoid, then you want to use Forward/Reverse, rather than On/Off.
Forward will be one position and Reverse the other.
Here's an example.

On activates the value, but off just stops it. Off doesn't reverse it.
That example would require you to hold button 1 in order for the solenoid to be forward, right?

I tried implenting your toggle code, and it does go forward when i hit button 1(and stays that way after I let go), but it doesn't reverse after I press button 1 again. How would I go about combining both code snippets?
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #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
  #5   Spotlight this post!  
Unread 13-02-2011, 21:00
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Double Solenoid problems

Use two single solenoids instead. Double solenoids caused our team some pain.

You are wiring one solenoid to 4 different buttons. Is that really needed or useful, or even your intention?

If you wish to wire one solenoid to one button, use a double case structure. Wire the outside case to a "get solenoid vi". In the inner structure, wire the button to the case and make the solenoid change with the true case.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2011, 21:06
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Double Solenoid problems

This is some code I came up with real quick. I hope it helps.

It uses one button that alternates the position of the solenoid when pushed.
Attached Files
File Type: vi Solenoid Help.vi (11.1 KB, 156 views)
Reply With Quote
  #7   Spotlight this post!  
Unread 04-02-2012, 10:03
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Re: Double Solenoid problems

question, i remember having trouble with this last year, but where in the world are the "forward/reverse" cases, as I can only get true or false statements this year, and those are not working
Reply With Quote
  #8   Spotlight this post!  
Unread 04-02-2012, 10:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: Double Solenoid problems

Position the cursor over the input node of the Solenoid Set vi (until you see the wire spool cursor).
Right-click for the menu and choose Create -> Constant

That'll give you the matching enumerated choices.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 08:12.

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