Go to Post "Field orientation is like a homing pidgeon that can fly backwards." - LostWolf [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 31-01-2015, 12:59
random.hero random.hero is offline
Registered User
FRC #3297
 
Join Date: Jan 2013
Location: MN
Posts: 12
random.hero is an unknown quantity at this point
Need help with programming pneumatics

I have a relatively basic understanding of LabView. I've done the gist of our programming the past several years, and we've avoided using pneumatics since I didn't know how to program them. Now we need them so it's time to learn.

With what I have the compressor just runs indefinitely and pushes our arm out indefinitely.

I tried copying some other folks' code to get some results, but it seems like I have our joystick programmed a little differently. I use Get instead of Get Values and break it out so I can program specific buttons/axis to specific actions.

I've attached what I have in LabView and would really appreciate some help with our issues.
Attached Thumbnails
Click image for larger version

Name:	begin-vi.png
Views:	81
Size:	145.4 KB
ID:	18073  Click image for larger version

Name:	teleop-vi.png
Views:	71
Size:	125.6 KB
ID:	18074  
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2015, 13:04
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 pneumatics

Solenoid Sets don't take a floating point number.
  1. Right-click on the input of the Solenoid Set and Create->Constant
  2. Copy/Paste the constant and attach two of them to the Select as shown
  3. Delete the constant attached directly to the Solenoid Set
  4. Wire the Select to the solenoid Set
That makes sure the enumerated constants used are the correct ones for Solenoid Set.

Here's an example
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2015, 13:38
Alpha Beta's Avatar
Alpha Beta Alpha Beta is offline
Strategy, Scouting, and LabVIEW
AKA: Mr. Aaron Bailey
FRC #1986 (Team Titanium)
Team Role: Coach
 
Join Date: Mar 2008
Rookie Year: 2007
Location: Lee's Summit, Missouri
Posts: 763
Alpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond reputeAlpha Beta has a reputation beyond repute
Re: Need help with programming pneumatics

Single acting solenoids are controlled with "On" and "Off". When turned on the solenoid opens one way, and when turned off (or the power is cut) they default back the other way.

Double acting solenoids have to be driven in both directions. "Forward" and "Reverse".

To some extent "On" and "Forward" do the same thing. But "Off" will not drive a double acting solenoid back.

The "On", "Off", "Forward", and "Reverse" settings are from an enumerated list.
"Off" = 0
"On" = 1
"Forward" = 2
"Reverse" = 3

The code you started with (sending 0 and 1) would have worked for a single acting solenoid. The reason why the arm was pushed out indefinitely was the "On" or 1 command drove it forward, and it needed a "Reverse" or 3 command not an "Off"/0 command to reverse the direction.

PS. It looks like you are using old code for the joystick portion as well. "Joystick Get" has been replaced with "Joystick Get Values" and is now unpacked by indexing the array instead of unbundling by name.
__________________
Regional Wins: 2016(KC), 2015(St. Louis, Queen City), 2014(Central Illinois, KC), 2013(Hub City, KC, Oklahoma City), 2012(KC, St. Louis), 2011(Colorado), 2010(North Star)
Regional Chairman's Award: 2014(Central Illinois), 2009(10,000 Lakes)
Engineering Inspiration: 2016(Smoky Mountain), 2012(Kansas City), 2011(Denver)
Dean's List Finalist 2016(Jacob S), 2014(Cameron L), 2013(Jay U), 2012(Laura S), 2011(Dominic A), 2010(Collin R)
Woodie Flowers Finalist 2013 (Aaron Bailey)
Championships: Sub-Division Champion (2016), Finalist (2013, 2010), Semifinalist (2014), Quaterfinalist (2015, 2012, 2011)
Other Official Awards: Gracious Professionalism (2013) Entrepreneurship (2013), Quality (2015, 2015, 2013), Engineering Excellence (Champs 2013, 2012), Website (2011), Industrial Design (Archimedes/Tesla 2016, 2016, 2015, Newton 2014, 2013, 2011), Innovation in Control (2014, Champs 2010, 2010, 2008, 2008), Imagery (2009), Regional Finalist (2016, 2015, 2008)

Last edited by Alpha Beta : 31-01-2015 at 13:48. Reason: Added Joystick Comments
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2015, 14:40
rpaulsen rpaulsen is offline
Mr. Paulsen - Huguebots Coach 5202
AKA: Mr. Paulsen
FRC #5202 (The New Ro Bots)
Team Role: Coach
 
Join Date: Dec 2013
Rookie Year: 2013
Location: New Rochelle High School
Posts: 35
rpaulsen is an unknown quantity at this point
Re: Need help with programming pneumatics

Quote:
Originally Posted by Alpha Beta View Post

Double acting solenoids have to be driven in both directions. "Forward" and "Reverse".

To some extent "On" and "Forward" do the same thing. But "Off" will not drive a double acting solenoid back.

The "On", "Off", "Forward", and "Reverse" settings are from an enumerated list.
"Off" = 0
"On" = 1
"Forward" = 2
"Reverse" = 3
AB, do you know if this is the same when programming in Java. My team is having trouble activating our actuators, which are connected to a Double Solenoid.
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2015, 18:05
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 pneumatics

Quote:
Originally Posted by rpaulsen View Post
AB, do you know if this is the same when programming in Java. My team is having trouble activating our actuators, which are connected to a Double Solenoid.
It's the same all over.

Pretty much, to check if a double solenoid is getting the correct signals from the user code, watch the LEDs on the PCM.
For a Double Solenoid you should see:
  • Only one PCM LED lit for the two sets of wires leading to the solenoid
  • Activating the solenoid the other way should switch the LEDs (that which was On shall go Off, and that which was Off shall go On).
A Single Solenoid will only connect to a single PCM LED and it will either be On or Off when switching states.

If the PCM LEDs are operating incorrectly, then the use code is incorrect.
If the PCM LEDs are working as expected, then you might have the wrong voltage selected on the PCM (12 vs 24v), or there might not be >20psi at the solenoid pressure input.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 10-02-2015, 16:40
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 524
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Need help with programming pneumatics

Also, if it helps, you can do a self-test in the roboRIO web-based configuration page. It will also tell you the enabled states of the solenoids (mirrors what the eight solenoid LEDs report on the PCM).

Self-Test button can be found here...
http://wpilib.screenstepslive.com/s/...ribution-panel
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:22.

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