Go to Post I wish my biology class was this exciting. - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-03-2010, 22:08
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Programming Pneumatics

Programming using LABVIEW. We are connecting our compressor from a spike relay to DIO port 1, the default code of compressor and solenoid works fine. I do not understand how to incorporate that into the Robot project. The code I wrote did not work . Could someone show a diagram of how the compressor is opened in the begin.vi and in the finish.vi and does it have to be in the teleop.vi?
  #2   Spotlight this post!  
Unread 12-03-2010, 22:15
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Programming Pneumatics

In Begin.VI you should have:

Compressor Open -> Compressor Start -> Compressor Refnum Set

Finish.VI should have:
Compressor Refnum Get -> Compressor Stop -> Compressor Close

You don't need anything in Autonomous or Teleop for the Compressor, the Start command spawns a separate thread that runs during both modes.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #3   Spotlight this post!  
Unread 12-03-2010, 22:18
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Programming Pneumatics

Search is your friend ... many threads about this ...

Your explanation is a little "off" ... I hope that in actuality, you are hooking up both an INPUT to DIO-1 from the pressure shut-off switch, and an OUTPUT to Relay-1 (the Spike)

The compressor example has everything you need, and a great diagram on the front panel on the details of wiring it up. Copy the OPEN and REF and START stuff from the example's block diagram into your begin VI. Nothing in teleop. It spawns a task that takes care of turning it on/off.

PS: It only operates while the 'bot is ENABLED.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
  #4   Spotlight this post!  
Unread 12-03-2010, 22:25
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Re: Programming Pneumatics

Do I have to hook up the the pressure switch and relay module and pressure switch channel and the relay channel to the compressor open or just the pressure switch and the relay number.
  #5   Spotlight this post!  
Unread 12-03-2010, 22:27
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Re: Programming Pneumatics

Do I have to hook up the the pressure switch and relay module and pressure switch channel and the relay channel to the compressor open or just the pressure switch and the relay number.

  #6   Spotlight this post!  
Unread 12-03-2010, 22:28
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Programming Pneumatics

The default module for both the switch and relay is slot 4, if this matches your configuration you can leave it unwired, but it doesn't hurt anything to wire in a constant Slot 4 to be sure.

You should wire in a constant for both the switch and relay channel that matches the channel you are using for each on the Digital Sidecar.

EDIT: From the image it looks like you are using controls instead of constants for the module and channel. While this will work if done properly, you probably aren't changing the module and channel very often so a constant is probably more appropriate. Right click on the control and select "Change to Constant"
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 12-03-2010 at 22:31.
  #7   Spotlight this post!  
Unread 12-03-2010, 22:42
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Re: Programming Pneumatics



Would that be just like tuning the compressor and solenoid.vi?
  #8   Spotlight this post!  
Unread 12-03-2010, 22:46
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Programming Pneumatics

That code looks correct for the compressor and for opening the Solenoid reference as well.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #9   Spotlight this post!  
Unread 12-03-2010, 22:50
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Re: Programming Pneumatics

One more quick question if my kicker piston only has one solenoid which will extend and then tretract will this code suffice. Meaning when button one is pressed it will pop out and when it is released it would retract.
  #10   Spotlight this post!  
Unread 12-03-2010, 22:53
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Programming Pneumatics

If you are using a single acting solenoid the code you have posted will move the cylinder one way when the button is pressed and keep it there as long as the button is held.

The cylinder will move the other way when the button is released and stay there until it is pressed again.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #11   Spotlight this post!  
Unread 12-03-2010, 22:55
zip100 zip100 is offline
Registered User
FRC #0640
 
Join Date: Feb 2010
Location: New York
Posts: 31
zip100 is an unknown quantity at this point
Re: Programming Pneumatics

Okay thank you for the help. The electrical team which handles the pneumatics stuff decided to all take a day off. So im trying to learn how everything is hooked up.
  #12   Spotlight this post!  
Unread 13-03-2010, 22:05
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Programming Pneumatics

Building on vikesrock's stellar advice, there are 2 common ways to control both sides of an extending/retracting piston.

1) Use 2 Solenoid Channels (see first attached pic).
2) Use a single Spike relay on the DIO sidecar (see 2nd pic)

Both of these assume you are using a 2-channel solenoid.

With option 1, you simply hook up 2 Sol-channel-outputs from the solenoid cRIO module to either side of the solenoid. [edit: to control it with your joystick button, wire it up to where the T/F constant is shown]

With option 2, you individually wire the 2 Red wires from the solenoid's 2 sides to the 2 outputs of the spike, then tie their blacks to each other and to the black from the PDB. On the input-side of the spike, run a fused-red from your PDB to both of them. To extend/retract you need to use the Forward/Reverse commands to the relay, and remember to set them to "Both Directions" when you open them in your Begin.VI [edit: to control it with your joystick button, put the Forward/Reverse constants into a T/F case structure and wire the joystick button to it.]

IMO, #1 is easier and more convenient, but sometimes #2 comes in handy when you are running low on Sol-Outputs.
Attached Thumbnails
Click image for larger version

Name:	Solenoid-Labview.JPG
Views:	58
Size:	7.3 KB
ID:	8888  Click image for larger version

Name:	Solenoid-Labview2.JPG
Views:	45
Size:	4.6 KB
ID:	8889  
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics

Last edited by Ziaholic : 13-03-2010 at 22:16. Reason: added details
Closed Thread


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
programming pneumatics holty531 Programming 9 02-02-2008 22:03
PROGRAMMING PNEUMATICS Reaper40 Pneumatics 17 02-02-2008 07:55
Programming Pneumatics? itzrobz Programming 2 20-01-2007 00:30
Programming of Pneumatics Ben Piecuch Programming 3 18-02-2005 02:39
Pneumatics Programming KWalsh Programming 8 19-02-2004 09:17


All times are GMT -5. The time now is 03:46.

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