Go to Post Do give credit to the mentors, because they make you who you are. - Arefin Bari [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 15-02-2010, 20:43
Poke2201 Poke2201 is offline
Registered User
AKA: Josh
FRC #0814
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: American Canyon, California
Posts: 11
Poke2201 is an unknown quantity at this point
Coding Relay with Compressor

Ok, Ive been working on getting the compressor working for 3 days now. Ive followed every example to get those relays to change colors from Orange to Green. This is my first year in FIRST (No Pun intended) and Im the team programmer. I use Labview.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2010, 23:45
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,112
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: Coding Relay with Compressor

Does it work if you use the Solenoid With Compressor Example?
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2010, 23:48
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,795
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: Coding Relay with Compressor

Have you tested using the example program "Solenoid with Compressor"?

Use that program as a working baseline to look at the Relay LEDs on the Digital sidecar. If the Relay 1 LEDs are not lighting, then that argues strongly for a wiring problem with the pressure switch.

If the Relay LEDs do turn green, but the Spike light remains orange, then that argues strongly that there is a control cable problem between the Digital Sidecar and the Spike.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2010, 01:23
Poke2201 Poke2201 is offline
Registered User
AKA: Josh
FRC #0814
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: American Canyon, California
Posts: 11
Poke2201 is an unknown quantity at this point
Re: Coding Relay with Compressor

Ive only used the examples as references. How do you test one through an example?
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2010, 08:49
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,112
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: Coding Relay with Compressor

Quote:
Originally Posted by Poke2201 View Post
Ive only used the examples as references. How do you test one through an example?
Run it. Change the IP address first:
Quote:
Originally Posted by Solenoid With Compressor Example
Note: In order to run this example, you will need to change the IP address of the cRIO in the Solenoid With Compressor Example project. You can do this by right-clicking on RT CompactRIO Target in the project, selecting Properties, and modifying the IP Address setting in the General Category to match that of your cRIO.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2010, 08:53
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,795
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: Coding Relay with Compressor

Make sure to run the Driver Station application in the Developer account where you are Running the example from.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2010, 18:18
3286's Avatar
3286 3286 is offline
Registered User
AKA: mike s
FRC #3286 (the Rock-It surgeons)
Team Role: Teacher
 
Join Date: Jan 2010
Rookie Year: 2009
Location: yakima, washington
Posts: 37
3286 has much to be proud of3286 has much to be proud of3286 has much to be proud of3286 has much to be proud of3286 has much to be proud of3286 has much to be proud of3286 has much to be proud of3286 has much to be proud of3286 has much to be proud of
Programming got me pretty discouraged today

We have had two days off this week,one for Presidents Day and the other was for a snow day that we didn't use. Saturday we pretty much finalized the mechanincals and fixed some squawks from our test driving, so today I thought I could do some programming. I have been here since 9 am, its nearly 330 now and have done everything listed above to the best of my knowledge. All the lights were green, the robot works properly - well it moves properly - but the compressor still does not come on.

This is pretty discouraging, our goal in the next 5 days is to get the kicker cylinder to extend and retract, which would seem to need to inputs from a joystick since the buttons are either on or off, but if the compressor wont operate then the kicker part is pretty useless. Our other goal was to get the KOP motor we are using for our lifting arm to work, again a simple on-off set of inputs ...well ok, forward / reverse, but again these are simply on or off conditions. At this rate it will be next year before I figure this out.

My kingdom for a simple explanation of how to do this. Have read the manuals and the online helps from one end to the other, but Id give the world for something simple and visual like a flow chart or Labview for Dummies. My hat is off to all of you who can grasp the programming side so quickly.

Mike
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2010, 21:05
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Coding Relay with Compressor

OK, we finally got it working!! As usual, the problem was our own. The key to making it work was to define the relay powering the compressor as a "Both directions". When we had it set to "Forward Only" it just would not work.

Simple, but quite frustrating.
Attached Thumbnails
Click image for larger version

Name:	Compressor.JPG
Views:	93
Size:	11.4 KB
ID:	8703  
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2010, 21:57
Poke2201 Poke2201 is offline
Registered User
AKA: Josh
FRC #0814
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: American Canyon, California
Posts: 11
Poke2201 is an unknown quantity at this point
Re: Coding Relay with Compressor

I believe that I have done that, but the Spike would not turn on.
Reply With Quote
  #10   Spotlight this post!  
Unread 16-02-2010, 22:37
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Coding Relay with Compressor

Quote:
Originally Posted by billbo911 View Post
OK, we finally got it working!! As usual, the problem was our own. The key to making it work was to define the relay powering the compressor as a "Both directions". When we had it set to "Forward Only" it just would not work.

Simple, but quite frustrating.
I definitely wouldn't call a bug in the library a problem of your own. http://decibel.ni.com/content/thread/6131
Reply With Quote
  #11   Spotlight this post!  
Unread 16-02-2010, 22:54
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Coding Relay with Compressor

Quote:
Originally Posted by Joe Ross View Post
I definitely wouldn't call a bug in the library a problem of your own. http://decibel.ni.com/content/thread/6131
I really want to use an expletive right about now.

This is the kind of information that "should" be made known and be easily found, not buried only on NI's web site.
Honestly, thank you for pointing this out Joe. Hopefully other teams that are struggling with this will find this info as well.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #12   Spotlight this post!  
Unread 16-02-2010, 23:51
Poke2201 Poke2201 is offline
Registered User
AKA: Josh
FRC #0814
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: American Canyon, California
Posts: 11
Poke2201 is an unknown quantity at this point
Re: Coding Relay with Compressor

Ok I made a new code in Teleop with solenoids and Relay and compressors I cant tell if I did this right, and I just followed most of the examples around here and LabView.

Images of Teleop:
Compressor On, Solenoids Extended


Compressor On, Solenoids Retracted


Compressor Off, Solenoids Retracted
Reply With Quote
  #13   Spotlight this post!  
Unread 17-02-2010, 00:48
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,112
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: Coding Relay with Compressor

Quote:
Originally Posted by billbo911 View Post
[size="5"]The key to making it work was to define the relay powering the compressor as a "Both directions". When we had it set to "Forward Only" it just would not work.
Why are you defining an explicit relay for the compressor instead of using the Open Compressor vi? It's a lot less of a hassle to let the library code deal with reading the pressure switch and running the compressor as needed.
Reply With Quote
  #14   Spotlight this post!  
Unread 17-02-2010, 00:51
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,112
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: Coding Relay with Compressor

Quote:
Originally Posted by Poke2201 View Post
Ok I made a new code in Teleop with solenoids and Relay and compressors I cant tell if I did this right, and I just followed most of the examples around here and LabView.
Why are you enabling and disabling the compressor based on a joystick button?

Unless you're doing some fancy power-saving scheme, I don't see a need to do anything besides opening and starting the compressor in Begin (and closing it in Finish). Everything involved with turning it on when the pressure switch calls for it will be taken care of for you behind the scenes.
Reply With Quote
  #15   Spotlight this post!  
Unread 17-02-2010, 00:58
Poke2201 Poke2201 is offline
Registered User
AKA: Josh
FRC #0814
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: American Canyon, California
Posts: 11
Poke2201 is an unknown quantity at this point
Re: Coding Relay with Compressor

Ok considering I have never programmed before(That whole code took me 3 weeks to learn, and that was just the Tank drive) I don't understand what I should do with the Compressor.

I also have other questions such as the relays being in the right area. Ive done this on the Classmate, and then I gave up due to the tiny keyboard(Try typing at 60 wpm on that thing.)

If its easier for you do you want to contact through email?
j_arucan@yahoo.com

Last edited by Poke2201 : 17-02-2010 at 00:59. Reason: Faster replies through email
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
solenoid with compressor vi ElanaC NI LabVIEW 42 29-12-2010 13:38
[OCCRA]: Problem with the compressor, pressure switch, or Bosch relay. BrittanyV OCCRA 3 16-10-2006 15:42
Help needed with coding simultaneous movement (EasyC/VEX) bodaciousllama Programming 7 14-08-2006 17:35
Problem with compressor Nick R. Pneumatics 3 21-02-2003 10:51
NEED HELP with Delay loop for compressor relay switch archiver 2001 10 24-06-2002 02:11


All times are GMT -5. The time now is 11:07.

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