Go to Post And then the judges joined in and did the wave! - Basel A [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 13-02-2010, 19:57
kavisiegel kavisiegel is offline
Registered User
FRC #0061 (The Shifters)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Milford MA
Posts: 37
kavisiegel is an unknown quantity at this point
6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

This morning, we set out to get the compressor running.

Our electronics guys wired up the compressor, and I "wired up" the program. It didn't work. So I re-did the program a few times, and then we ran some sample compressor programs... they couldn't run the compressor either. The mentor that I was working with was convinced that we have to write the compressor logic on our own, but we decided we should check to see if we have a relay problem first. At that point I found the logic in the WPI Compressor library, and we decided that it's another issue altogether.

Turns out, the compressor VI wanted the compressor to be on, but the sidecar just doesn't want to flip that relay. We tried it on slot 4 and slot 6, and we tried 3 different sidecars.

Any ideas, anybody?
__________________
www.team61.com
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2010, 20:02
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,748
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: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Since it is unlikely that that much HW is broken, it could be a wiring problem. The sidecar needs the correct voltage to operate. I assume the PWMs and other I/O on the same digital sidecar work?

It could be a SW problem. Have you checked the diagnostics tab to see if there are errors about the relay not really opening do to a parameter or such?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2010, 20:07
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Do you have your 12V hooked up to the sidecar? Both last year and this year I forgot to hook up the 12V, not allowing a good 5V line to be active, not allowing the compressor or switch to work.

EDIT: Oops, Greg kinda beat me to it. But yeah, check that 12V line, and ensure your 5V and 6V LEDs are on.

Jacob
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2010, 20:14
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

The sidecar has LEDs that mirror the state of the relays. Check to see whether or not the LEDs mirror what you think the relays should be doing.

If the 5V or Battery LEDs aren't lit, its your power.

If the Relay LEDs don't light AND your PWMs aren't working, it is the ribbon cable.

If the Relay LEDs don't light AND your PWMs are working, it is likely your code (or your DSC, but not likely since you tried three).

If the Relay LEDs do light, but don't do the right thing, it is definitely your code.

If the Relay LEDs do light and do the right thing but the relay doesn't fire, it is the wiring to Spike or the Spike itself.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2010, 20:56
kavisiegel kavisiegel is offline
Registered User
FRC #0061 (The Shifters)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Milford MA
Posts: 37
kavisiegel is an unknown quantity at this point
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Quote:
Originally Posted by Greg McKaskle View Post
Since it is unlikely that that much HW is broken, it could be a wiring problem. The sidecar needs the correct voltage to operate. I assume the PWMs and other I/O on the same digital sidecar work?

It could be a SW problem. Have you checked the diagnostics tab to see if there are errors about the relay not really opening do to a parameter or such?

Greg McKaskle
Yes, the PWMs work flawlessly, and the digital input works. I'd hope a low battery wasn't to blame, we were running at about 12.3 volts.
I haven't checked the diagnostics tab specifically for relay errors, I didn't know those were displayed... I'll do that on Monday, but from what I recall, the errors there were all camera related.


Quote:
Originally Posted by whytheheckme View Post
Do you have your 12V hooked up to the sidecar? Both last year and this year I forgot to hook up the 12V, not allowing a good 5V line to be active, not allowing the compressor or switch to work.

EDIT: Oops, Greg kinda beat me to it. But yeah, check that 12V line, and ensure your 5V and 6V LEDs are on.

Jacob
I didn't check the electronics too much, but I recall there being 3 LEDs lit.. I'll look into that a bit more on Monday.


Quote:
Originally Posted by EricVanWyk View Post
The sidecar has LEDs that mirror the state of the relays. Check to see whether or not the LEDs mirror what you think the relays should be doing.

If the 5V or Battery LEDs aren't lit, its your power.

If the Relay LEDs don't light AND your PWMs aren't working, it is the ribbon cable.

If the Relay LEDs don't light AND your PWMs are working, it is likely your code (or your DSC, but not likely since you tried three).

If the Relay LEDs do light, but don't do the right thing, it is definitely your code.

If the Relay LEDs do light and do the right thing but the relay doesn't fire, it is the wiring to Spike or the Spike itself.
That's actually the check we were doing. When we changed the relay values, no LEDs came on.

From the list you gave me.. well, it points right to the code. We got power. We got PWMs. We got DIO... but we used the sample programs, and that still didn't work. We tried "Compressor With Cylinder.vi" and "Solenoid With Compressor.vi" and "Relay Example.vi" and yes, we did configure them properly when we ran them.


Thanks for all the hints so far, everyone... it's really a huge help, we were pulling our hair out.
__________________
www.team61.com
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2010, 21:54
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Cut out the middle man and try using the relay VIs directly. I believe there is even a nice example for it - just remember to set the examples IP address*!


* Every single time I've tried to use an example, I forgot to change the IP address.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2010, 15:07
kavisiegel kavisiegel is offline
Registered User
FRC #0061 (The Shifters)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Milford MA
Posts: 37
kavisiegel is an unknown quantity at this point
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Quote:
Originally Posted by EricVanWyk View Post
Cut out the middle man and try using the relay VIs directly. I believe there is even a nice example for it - just remember to set the examples IP address*!


* Every single time I've tried to use an example, I forgot to change the IP address.
I did that too, check the post above you

And we did manage to remember to change the IP.. after a couple complete restarts.. haha
__________________
www.team61.com
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2010, 11:41
kavisiegel kavisiegel is offline
Registered User
FRC #0061 (The Shifters)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Milford MA
Posts: 37
kavisiegel is an unknown quantity at this point
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

OK, so we got the compressor running. We had a bad cable.

Now we got another issue, the compressor stops and starts every 10-15 pounds that it gains. Is that a normal issue? A fuse blew, and we think that's to blame.

It does this in both compressor examples as well, not just my code.
__________________
www.team61.com
Reply With Quote
  #9   Spotlight this post!  
Unread 15-02-2010, 13:23
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Quote:
Originally Posted by kavisiegel View Post
OK, so we got the compressor running. We had a bad cable.

Now we got another issue, the compressor stops and starts every 10-15 pounds that it gains. Is that a normal issue? A fuse blew, and we think that's to blame.

It does this in both compressor examples as well, not just my code.
If you have wired the compressor correctly, it is powered via a spike (powered by a dedicated 20A circuit breaker from the power distribution board) and the spike's fuse has been replaced by a 20A circuit breaker IAW <R60> part F.

It is possible that

1. One of the two circuit breakers as bad.
2. The pressure switch has a bad connection somewhere.
3. The current draw from the compresser is too high (bad compressor or shorted wiring).

I really do not think that could be a software issue but I'll defer that issue to others.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #10   Spotlight this post!  
Unread 15-02-2010, 15:39
kavisiegel kavisiegel is offline
Registered User
FRC #0061 (The Shifters)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Milford MA
Posts: 37
kavisiegel is an unknown quantity at this point
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Well we found the underlying issue of that, too. The watchdog timed out - it was software.
We put the light on for the first time, the bracket just got it, and we noticed that the light turned off every time the compressor turned off. Then the diagnostics tab told us the rest of the story.



So now, the new issue, WHY is our watchdog timing out?

It was originally hard wired, and we thought maybe we might have more luck wireless. Same thing. We tried it with the default robot project, no changes at all, and we tried sevral examples. It always did the same thing. We thought maybe the program was timing out because we didn't have a camera on there and the request wasn't going through, but then we attached that and nothing changed at all.
__________________
www.team61.com
Reply With Quote
  #11   Spotlight this post!  
Unread 15-02-2010, 15:55
nick1023 nick1023 is offline
Registered User
FRC #1023
 
Join Date: Dec 2008
Location: Toledo, Ohio
Posts: 19
nick1023 will become famous soon enough
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Make sure you have installed the latest driver station and labview updates from www.ni.com/first.

These updates have resolved some of the watchdog issues.

Here is my very broad understanding of watchdog issues at the moment. Each time the watchdog encounters an error it pauses your code running on the crio (watchdogs want to stop the machine from hurting itself if there is an error). If you call something in teleop.vi that is not opened in Begin.vi the whole control system will "pulse" in between pauses for example.

The update addressed this by making the watchdog ignore smaller errors. Ignore more small errors and you will have less watchdog errors. If you do something to cause a more "major" error you will still see watchdog timeouts.

Again, people who really know what the watchdog does are likely to wince at my explaination but it boils down to
-make sure the update is installed.
-make sure you have error free vis.

I think there was a "watchdog for beginners" explaination thread somewhere on the boards today ...
__________________
1023 Bedford Express
Reply With Quote
  #12   Spotlight this post!  
Unread 15-02-2010, 20:35
kavisiegel kavisiegel is offline
Registered User
FRC #0061 (The Shifters)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Milford MA
Posts: 37
kavisiegel is an unknown quantity at this point
Re: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Quote:
Originally Posted by nick1023 View Post
Make sure you have installed the latest driver station and labview updates from www.ni.com/first.

These updates have resolved some of the watchdog issues.

Here is my very broad understanding of watchdog issues at the moment. Each time the watchdog encounters an error it pauses your code running on the crio (watchdogs want to stop the machine from hurting itself if there is an error). If you call something in teleop.vi that is not opened in Begin.vi the whole control system will "pulse" in between pauses for example.

The update addressed this by making the watchdog ignore smaller errors. Ignore more small errors and you will have less watchdog errors. If you do something to cause a more "major" error you will still see watchdog timeouts.

Again, people who really know what the watchdog does are likely to wince at my explaination but it boils down to
-make sure the update is installed.
-make sure you have error free vis.

I think there was a "watchdog for beginners" explaination thread somewhere on the boards today ...
We had the update installed on the laptop being used, but for good measure we installed them on the driver station pc as well. Then we imaged the cRIO from the driver station and deployed the unmodified default FRC project.

Everything was as fresh as possible. And we STILL couldn't get it working.

We think it may be hardware, because with some testing, it seems we don't get watchdog errors when we unplug the digital sidecar.

I got to the school at 10 am and I left at 7 with this issue still unresolved.
__________________
www.team61.com
Reply With Quote
  #13   Spotlight this post!  
Unread 16-02-2010, 12:46
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,731
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: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

Do you get Watchdog errors if you leave the DSC connected, but disconnect all your DIO, Relay, & I2C connections?

Possible bare wires shorting on the Wago connector?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #14   Spotlight this post!  
Unread 16-02-2010, 21:10
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,349
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: 6 hours, 4 mentors and 2 students couldnt figure out whats wrong with our relays

OK, the camera was not the problem, but our code was. We now have it working!
The root cause was that we had set the relay definition as "Forward Only" in the Begin.vi. Changing it to "Both Directions" did the trick.

Here is my posting with a picture of what fixed it for us.


Edit: It looks like this is a known issue. Thanks to Joe Ross for pointing this out.
__________________
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

Last edited by billbo911 : 16-02-2010 at 22:56.
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
Figure out what's wrong with the IR board sparrowkc Electrical 5 17-02-2008 12:29
All female team- students AND mentors Marie General Forum 22 15-02-2008 13:06
What's Wrong with our Gyro??? manderson5192 Programming 4 08-02-2008 09:08
For Students only: dealing with mentors Cody Carey General Forum 1 09-02-2006 01:38
Whats wrong with this code? Morgoth Programming 4 19-01-2003 11:45


All times are GMT -5. The time now is 04:45.

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