Go to Post IMHO if it was legal a peg leg would be better than a caster. - Edoc'sil [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 16-02-2015, 21:34
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Need help with programming double solenoids

Hello, I am new to Labview programming and I was trying to program a double solenoid using an example code. Their code is from 2011 and I ran into trouble with wiring it to the "boxes" the attachments are my code and the sample code i used. I also cannot find how to get the joystick "box" etiher
Attached Thumbnails
Click image for larger version

Name:	help.png
Views:	52
Size:	120.0 KB
ID:	18392  Click image for larger version

Name:	DoubleSolenoid-2011.jpg
Views:	41
Size:	25.9 KB
ID:	18393  
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2015, 21:46
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: Need help with programming double solenoids

Use this example updated for 2015 instead.

If you save the example picture, then drag and drop in on your block diagram it will generate the code.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2015, 21:47
jSchnitz's Avatar
jSchnitz jSchnitz is offline
Lead Programmer, Operator
AKA: Jacob Schnitzlein
FRC #1986 (Team Titanium)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Lee's Summit, MO
Posts: 20
jSchnitz is on a distinguished road
Re: Need help with programming double solenoids

To get a joystick value now you'll need to use the Index Array function rather than Unbundling by Name, like so

Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2015, 07:53
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Re: Need help with programming double solenoids

Thanks! but how do I set what button is forward and which is reverse
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2015, 08:24
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: Need help with programming double solenoids

Quote:
Originally Posted by noah10001 View Post
how do I set what button is forward and which is reverse
Use the "Sticky Solenoid Example" on the page Mark pointed to. The integers connected to the Index Array function select which button values come out of the function. It's a zero-based array, so "1" is actually the second button.
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2015, 09:24
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Re: Need help with programming double solenoids

Alright I am very close I have a xbox controller and I want it so Y is up and A is down. here is what i got. Even trying all buttons it doesn't work
Attached Thumbnails
Click image for larger version

Name:	help.png
Views:	42
Size:	114.4 KB
ID:	18397  
Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2015, 10:28
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: Need help with programming double solenoids

The enums in Teleop are incorrect for Solenoid Set. That's why they have red dots.
Get a correct Solenoid Set Enum by
  • Deleting the wire into Solenoid Set (the one with the red dot)
  • Right-click on the now vacant Solenoid Set input node and choose Create->Constant
That's the correct Solenoid Set enum type.
  • Now make copies of the correct one and replace all the others
  • Finally, remove the enum you created into Solenoid Set and wire Solenoid Set into the Select as it was before.
  • If done correctly all the red dots should be gone.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 17-02-2015, 16:49
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Re: Need help with programming double solenoids

Alright this worked! Now when i push a button my air cylinder goes all the way up or all the way down. Is there any way to have an in-between..I attempted to code the right stick on the xbox controller but said there were two different data types
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2015, 17:07
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: Need help with programming double solenoids

Quote:
Originally Posted by noah10001 View Post
Is there any way to have an in-between..
Simple answer: no. Pneumatic solenoid valves are two-state devices. There is no middle ground.

Complicated answer: with sufficient analysis and design, one can devise a way to use multiple solenoid valves and flow restrictors to cause a pneumatic cylinder to retract or extend an arbitrary amount. It will move in a spring-like fashion due to external forces, so some sort of feedback on its actual position would be helpful.
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2015, 17:23
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Re: Need help with programming double solenoids

When i click the buuton it is one-and-done.We want the button while pressed to flow and when released no flow anyway for this?
Reply With Quote
  #11   Spotlight this post!  
Unread 17-02-2015, 18:19
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: Need help with programming double solenoids

Do you mean like this example?
The solenoid here is Forward only as long as the button is held.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #12   Spotlight this post!  
Unread 18-02-2015, 07:53
noah10001 noah10001 is offline
Registered User
FRC #5447
 
Join Date: Feb 2015
Location: Michigan
Posts: 9
noah10001 is an unknown quantity at this point
Re: Need help with programming double solenoids

So is there a way to lift a joystick to lift the cylinders some and then let go and it will hold that pressure until i move to joystick again?
Reply With Quote
  #13   Spotlight this post!  
Unread 18-02-2015, 08:04
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: Need help with programming double solenoids

Quote:
Originally Posted by noah10001 View Post
So is there a way to lift a joystick to lift the cylinders some and then let go and it will hold that pressure until i move to joystick again?
You can't do it with a double solenoid valve connected to a typical pneumatic cylinder.

It is possible to do something like what you are asking by using multiple solenoid valves connected in creative ways, but it is not something you will find an off-the-shelf solution for. However, it will be very difficult to make it meet the pneumatics rules, which require that the working pressure never exceed 60 psi.
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 21:32.

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