Go to Post I feel like I need to rinse out my brain with drain cleaner - dlavery [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
  #16   Spotlight this post!  
Unread 17-02-2010, 01:26
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,372
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 Alan Anderson View Post
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.
Why??
Because there is always more than one way to skin a cat.

Besides, my students now know the logic and coding a bit better than if they let a library do the work for them. I agree it is simpler to have the library do the work, but thinking your way through this process makes the learning that much richer. Additionally, troubleshooting the problems we ran into also made them dig a lot deeper into the code than if it just worked and they didn't know why.
__________________
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
  #17   Spotlight this post!  
Unread 17-02-2010, 19:22
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

Alright, Looking around on here, there seems to be one thing I didn't notice. We cant get a RSL on. Both of our Sidecars do not have RSL leds on or doing anythign at all. Also 2 out of 3 power lights are on, the 6v and Bat are on, but 5v isnt.
Reply With Quote
  #18   Spotlight this post!  
Unread 17-02-2010, 19:53
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,579
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 Poke2201 View Post
Alright, Looking around on here, there seems to be one thing I didn't notice. We cant get a RSL on. Both of our Sidecars do not have RSL leds on or doing anythign at all. Also 2 out of 3 power lights are on, the 6v and Bat are on, but 5v isnt.
Disconnect everything from the digital sidecar (including the 37) pin cable, so that just the power cable is plugged in. If you still only have some of the power leds, there is a problem with the digital sidecar. If all power LEDs are on, add each cable one at a time and see which one causes the 5v power LED to go out.
Reply With Quote
  #19   Spotlight this post!  
Unread 17-02-2010, 20:10
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 changed the wiring to the PD board, now everything is on, EXCEPT FOR THE RSL LED!!!!


Update: Got RSL led on, Now I gotta get the Relay to actually turn on. Should I upload pictures of my begin vi? And I deleted the Compressor being enabled by a joystick button. Do I need to use enable compressor for anything?

Last edited by Poke2201 : 17-02-2010 at 20:30. Reason: Got the RSL working.
Reply With Quote
  #20   Spotlight this post!  
Unread 18-02-2010, 06:28
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Coding Relay with Compressor

By the way, if you are going to develop on the classmate and your hands aren't the right size, try connecting a USB keyboard. I like connecting a mouse as well.

Greg McKaskle
Reply With Quote
  #21   Spotlight this post!  
Unread 18-02-2010, 10:06
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: Coding Relay with Compressor

Quote:
Originally Posted by Poke2201 View Post
I changed the wiring to the PD board, now everything is on, EXCEPT FOR THE RSL LED!!!!


Update: Got RSL led on, Now I gotta get the Relay to actually turn on. Should I upload pictures of my begin vi? And I deleted the Compressor being enabled by a joystick button. Do I need to use enable compressor for anything?
What did you do to get the RSL back?

Just post the Begin.vi itself instead of a picture. It's easier to check that way. Ther's always something off the edge of the photo that can't be seen and should be.

You only need to use Compressor Start.

Compressor Enabled is only there to let you check if the compressor is on or not. It doesn't take any action. It's like getting the value of a button off a joystick Get.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #22   Spotlight this post!  
Unread 18-02-2010, 18:11
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Re: Coding Relay with Compressor

(kinda off topic)According to my knowledge, FIRST does not support windows 7 with LabView. But if it works for you, great!
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
  #23   Spotlight this post!  
Unread 18-02-2010, 18:35
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

Alright Ill post our code on it, I followed your examples in the begin.vi though
Reply With Quote
  #24   Spotlight this post!  
Unread 18-02-2010, 19:25
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

Begin vi.
Attached Files
File Type: vi Begin.vi (41.2 KB, 22 views)
Reply With Quote
  #25   Spotlight this post!  
Unread 19-02-2010, 18:31
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

Solenoid and compressor vi. doesn't work, watch dog times out too fast
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 22:02.

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