Go to Post If we can figure out how to make a robot in six weeks, a little thing like personality conflict should be easy to overcome. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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-03-2013, 14:28
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Air Cylinder,compressor,soleinoids,relay

Hey, i really and truly need massive help with this programming.......i have been on this for at least three weeks trying to figure out how to program this air compressor and air seinolds, I've been trying to find someone with the right LabVIEW Functions that shows me exactly how to control the air cylinder,compressor,solenoids,relay: the proper steps on how to program each of the 4 subVI'S that were listed
Reply With Quote
  #2   Spotlight this post!  
Unread 18-03-2013, 14:42
jdaming jdaming is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2007
Location: New Orleans, LA
Posts: 43
jdaming is on a distinguished road
Re: Air Cylinder,compressor,soleinoids,relay

I would start here:
http://www.ni.com/pdf/manuals/372668d.pdf

This is a LabVIEW guide for FIRST robotics (a little old but mostly still good). Chapter 38 will cover solenoids etc.

You can also go to Help>Find Examples and you will find a couple of relevant examples.

If you have specific questions we can answer them.

Worst case come find me during Bayou on Thursday and I'd be happy to help I will be around one of teams 1304,4805, or 4113.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2013, 15:39
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

thanks n i would really to be there but my team and i aren't goin to the Bayou regional this week we are going to the regional in Arkansas
Reply With Quote
  #4   Spotlight this post!  
Unread 18-03-2013, 15:58
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by tim101 View Post
Hey, i really and truly need massive help with this programming.......i have been on this for at least three weeks trying to figure out how to program this air compressor and air seinolds, I've been trying to find someone with the right LabVIEW Functions that shows me exactly how to control the air cylinder,compressor,solenoids,relay: the proper steps on how to program each of the 4 subVI'S that were listed
I am still looking for help
Reply With Quote
  #5   Spotlight this post!  
Unread 18-03-2013, 16:14
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by tim101 View Post
thanks n i would really to be there but my team and i aren't goin to the Bayou regional this week we are going to the regional in Arkansas
Uh. If you're with 4297, they're registered for Bayou according to FIRSTs website. You can't just change which regional(s) you're going to on a whim.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-03-2013, 16:48
jdaming jdaming is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2007
Location: New Orleans, LA
Posts: 43
jdaming is on a distinguished road
Re: Air Cylinder,compressor,soleinoids,relay

Maybe try posting an image of what you have tried so far?

What happens currently when you run the code you are using?

How many solenoids do you have? Do you see any lights change on the 9472 solenoid module in the cRIO chassis?
Reply With Quote
  #7   Spotlight this post!  
Unread 18-03-2013, 17:12
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: Air Cylinder,compressor,soleinoids,relay

Using LabVIEW, you have access to some very good example code and tutorials.

On the left side of the Getting Started window, select the Support tab, then click on the "Find FRC Examples..." link. Browse for the "Solenoid with Compressor" example project (it's in the Pneumatics subfolder under FRC Robotics) and open it. It shows you exactly how to make a compressor work and exactly how to control a solenoid.

One of the tutorials you can find from the Getting Started window is Tutorial 7 - Integrating Examples into Robot Code. That'll tell you how to take the working code from the example and put it into your robot program.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-03-2013, 17:52
chriz4gx chriz4gx is offline
Registered User
AKA: Christopher Villar
FRC #2871 (Beantown Botz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston,MA
Posts: 45
chriz4gx is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Hope this Helps!
Are you connecting your solenoids to a relay or the cRio Solenoid Bumper?
Attached Files
File Type: pdf Programming Pneumatics.pdf (545.2 KB, 32 views)
Reply With Quote
  #9   Spotlight this post!  
Unread 19-03-2013, 11:48
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

this is my program.
Attached Thumbnails
Click image for larger version

Name:	Begin.VI..png
Views:	42
Size:	21.3 KB
ID:	14387  Click image for larger version

Name:	Teleop.vi..png
Views:	54
Size:	42.3 KB
ID:	14388  
Reply With Quote
  #10   Spotlight this post!  
Unread 19-03-2013, 12:11
jdaming jdaming is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2007
Location: New Orleans, LA
Posts: 43
jdaming is on a distinguished road
Re: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by jdaming View Post
Maybe try posting an image of what you have tried so far?

What happens currently when you run the code you are using?

How many solenoids do you have? Do you see any lights change on the 9472 solenoid module in the cRIO chassis?
Thanks for the image.

My other two questions still apply to helping us figure out if the problems is in the wiring, code, execution, etc.

Do you initialize "DoubleSolenoid" in the Begin VI? (I assume you do just want to make sure)

You are expecting it to only go out while you have the button pressed and held correct? Do you see the joystick input on the Dashboard? I am not sure the type of solenoid/how you have it connected but have you tried using reverse instead of forward.

Is your compressor running / do you have pressure when you test this?
Reply With Quote
  #11   Spotlight this post!  
Unread 19-03-2013, 12:31
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

yes i do initialize Double Solenoid in the begin vi
Reply With Quote
  #12   Spotlight this post!  
Unread 19-03-2013, 12:44
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: Air Cylinder,compressor,soleinoids,relay

Quote:
Originally Posted by tim101 View Post
this is my program.
You labeled it Begin, but the picture is obviously Finish.

So what's the problem? Tell us what you want the robot to do, and what it's doing instead.
Reply With Quote
  #13   Spotlight this post!  
Unread 19-03-2013, 12:48
tim101 tim101 is offline
Registered User
FRC #4297 (WenoRobots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: alabama
Posts: 16
tim101 is an unknown quantity at this point
Re: Air Cylinder,compressor,soleinoids,relay

Right now wat I am mostly trying to do is make sure that my compressor is workin
Reply With Quote
  #14   Spotlight this post!  
Unread 19-03-2013, 13:01
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Air Cylinder,compressor,soleinoids,relay

I'm still quite concerned by tim's Regional confusion.

Whether or not the robot works is irrelevant if they show up at the wrong regional with it.
Reply With Quote
  #15   Spotlight this post!  
Unread 19-03-2013, 13:04
jdaming jdaming is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2007
Location: New Orleans, LA
Posts: 43
jdaming is on a distinguished road
Re: Air Cylinder,compressor,soleinoids,relay

So far I have only seen code that deals with the solenoids. Starting the compressor is a separate piece of code have you included that?

I found an image of someone else's begin VI code here with some compressor code in it so you will want to check you have something like that. You could probably also copy the code out of the example mentioned above.
http://www.chiefdelphi.com/forums/at...0&d=1330110193
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 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