Go to Post Failure is not an option. - [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, 18:14
Stealth Stealth is offline
Registered User
FRC #2073
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Elk Grove
Posts: 17
Stealth is an unknown quantity at this point
Relay Issues

My team has been trying to get our compressor running for hours today but to no avail.

I've tried the compressor example in lab view and that didn't work. So now I have written a compressor code without using any compressor vi's.

The code reads in the digital input from the pressure switch and when it is not activated it sends out a constant of 2 to drive the relay in a forward direction (I don't know if that matters or not, I tried a 1 as well). When I run the code the value going into the relay is 2 but no light shows up on the digital side car. I have tried multiple side cars and multiple ribbon cables and nothing is working. The rest of the pwm's work but the relays will not.

Also this code is set in the 10ms look in the periodic tasks vi.

Thank you in advance,

Robert
Team 2073
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2010, 19:16
Stealth Stealth is offline
Registered User
FRC #2073
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Elk Grove
Posts: 17
Stealth is an unknown quantity at this point
Re: Relay Issues

So I tried just the compressor with cylinder example by itself and it worked. As soon as I put it in the code it didnt. The indicators said it was enabled and running but it wasnt.

So its not hardware. Where should I place this compressor example? Maybe thats what I'm doing wrong.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2010, 20:23
Stealth Stealth is offline
Registered User
FRC #2073
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Elk Grove
Posts: 17
Stealth is an unknown quantity at this point
Re: Relay Issues

Ok I just put a relay in the teleop code just to see if any sort of relay would work and it doesn't.

So my relays arn't working in the basic code.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2010, 00:03
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,695
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: Relay Issues

Do these examples help any?
http://www.chiefdelphi.com/forums/sh...9&postcount=15
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2010, 00:24
billbo911's Avatar
billbo911 billbo911 is online now
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,345
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: Relay Issues

Quote:
Originally Posted by Mark McLeod View Post
Mark,

I worked with Stealth for hours today on this. It is quite frustrating!
We will take a look at these examples tomorrow. Honestly, only the first one should apply.
Here's the deal. We were able to get the "Compressor with Solenoid" example to work just fine, so we know it is not a hardware issue. When we copied and pasted the code into our full project in the 100ms timed loop, it would not work. We even had both the "Compressor Enabled" and "Compressor Status" indicators green on the front panel, but no LED's light up on the DSC, so the relay never energized.
We have tried building our own compressor vi's but that didn't work either.
__________________
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
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
Relay Robopanda6 Java 5 07-02-2010 01:08
C++ Relay Code? Happyisgood C/C++ 10 16-07-2009 14:54
Programming a relay in C++ Kage C/C++ 2 10-01-2009 17:51
Relay Help JCODER Programming 2 06-02-2008 16:49
Relay fault archiver 2000 2 23-06-2002 23:36


All times are GMT -5. The time now is 17:25.

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