Go to Post Meanwhile, it's water over the dam, spilled milk, etc. Let's drop the subject and get on with life. I am seeing people warming up their lawyerism, which is not a good thing when we are coming up on build season. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 18-01-2014, 21:32
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,830
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 Outputs on Digital Side Car Not Working

I'd suggest running the Relay Example project under Support -> Find FRC Examples->Actuators->Relay.lvprog (change the target to your team number)
That eliminates the possibility of any simple coding errors on your part.
Run in Debug to be sure that the code is actually executing on the cRIO.

Verify the cRIO is running image v52.

Verify the Digital Sidecar power (I'm sure you have).

Possibly, add in a solenoid set in order to blink the solenoid module lights as a signal that the code is being downloaded properly and is working.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-01-2014 at 23:20.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2014, 23:18
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: Relay Outputs on Digital Side Car Not Working

You didn't mention making sure you were using a fully-charged battery.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2014, 23:26
ronbaer ronbaer is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Chantilly, VA
Posts: 8
ronbaer is an unknown quantity at this point
Re: Relay Outputs on Digital Side Car Not Working

We had a similar problem Monday, code could not turn enable the Spike from the relay output. We are using C++, not LabView.

Problem turned out to be the programmers had upgraded to the new 2014 C++ libraries but did not upgrade the cRIO image to 2014 (it was still at 2013). We were getting very strange NetConsole errors when trying to run the code. After swapping hardware, etc, we begin to focus on the code and then realized the version mismatch.

Good luck pin pointing the problem.
__________________
Ron Baer
Team 612 - Chantilly Robotics
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2014, 10:05
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Relay Outputs on Digital Side Car Not Working

The ribbon cables aren't the ones that were made backwards in the last couple of years are they? Do other things work on the sidecar like digital in/outs and pwm's? Are all the green power supply lights on?
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2014, 10:16
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 750
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Relay Outputs on Digital Side Car Not Working

Quote:
Originally Posted by SuperBK View Post
The ribbon cables aren't the ones that were made backwards in the last couple of years are they? Do other things work on the sidecar like digital in/outs and pwm's? Are all the green power supply lights on?
The ribbon cable that we swapped out was the 2014 KOP ribbon cable this year.

We have all green LED lights on three different DSC that we tried. The PWM signals work because we can drive around and control the robot. the Pneumatic Bumper works, we can see the relay lights come on and off from the software on the front of it.

I have not confirmed if the software team has the latest firmware. I will double check that on Monday with them. Will try the other suggestions noted above.

1. Make sure firmware is update.
2. Try sample Relay Code in Examples to make sure not a software bug somewhere.

It's an odd problem for sure...
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2014, 21:10
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,830
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 Outputs on Digital Side Car Not Working

If the Relay LEDs are still not lighting up, then the code & firmware need to be checked.



This is more for others you may read this later...
If the Relay status LEDs were lighting up (and the Spike still wasn't responding), then I wouldn't suspect code or firmware any longer. Just make sure only the Relay green or only the red come on at a time (assuming that you are using the Spike to control a motor).

I'd next test the Relay output pins with a multi-meter to see if you see power to match the LEDs. 0v on a pin if the corresponding LED is out, 5v if the corresponding LED (red or green) is lit.

If that passes, then work your way towards the Spike.

Plug a PWM cable into the appropriate Relay, then use the multi-meter to test the far end of the PWM cable.

If you get a signal all the way out there, then the Spike is the remaining issue.
Connect it and the Spike LED should show orange when it has 12v power, otherwise the color should match the DSC's Relay LED.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-01-2014 at 21:13.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2014, 22: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: Relay Outputs on Digital Side Car Not Working

Another way to double check things is to set the DS to test mode. In your dashboard, click on the test tab, and scroll to verify the relay is listed. You can select the relay and press the momentary button to turn on the relay.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 19-01-2014, 22:48
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 750
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Relay Outputs on Digital Side Car Not Working

Quote:
Originally Posted by Greg McKaskle View Post
Another way to double check things is to set the DS to test mode. In your dashboard, click on the test tab, and scroll to verify the relay is listed. You can select the relay and press the momentary button to turn on the relay.

Greg McKaskle
No kidding? Nice tip...We will try that.
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2014, 19:02
2B || !2B's Avatar
2B || !2B 2B || !2B is offline
/* No Comment */
FRC #1559 (DevilTech)
Team Role: Programmer
 
Join Date: Apr 2013
Rookie Year: 2013
Location: New York
Posts: 19
2B || !2B is a jewel in the rough2B || !2B is a jewel in the rough2B || !2B is a jewel in the rough2B || !2B is a jewel in the rough
Re: Relay Outputs on Digital Side Car Not Working

We're having the same issue, but we've found a temporary solution! The "Long" cRIO (8 slots) test board we have was having the issues with not running the relays. Our "Short" cRIO (4 slots) test board uses the relays without issues running the same code. (We're using java)

I don't have any clue why this happens, but my best guess at the moment is that the long cRIO is anti-relay...
__________________
There are no brakes on the software train
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2014, 21:21
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 750
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: Relay Outputs on Digital Side Car Not Working

Oh I forgot to follow up.

First of all, the "TEST" mode in the new driver station, is AWESOME! Kudos to the NI team for making that. I was pressuring our software team to make a custom dash board that has a maintenance screen that we can view and "force" I/O points, but the TEST mode does all this for the teams. Thank you for this.

Using test mode, we was able to "force" the relay output points on and off. This proved that everything work electrical. So it was a software problem.

After the software team reviews future, I was told the problem was the START VI was moved out of order. I believe it was before or after the references or something like that. Once they corrected that problem in the software, the compressor and all relays started working again.

They did confirm they had version 52.

The biggest take away was using the new TEST mode in the driver screen. That was a nice tool.

Thanks everyone for your input. Problem solved with us.
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Reply With Quote
  #11   Spotlight this post!  
Unread 24-01-2014, 00:13
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: Relay Outputs on Digital Side Car Not Working

Quote:
Originally Posted by Chris_Elston View Post
First of all, the "TEST" mode in the new driver station, is AWESOME! Kudos to the NI team for making that. I was pressuring our software team to make a custom dash board that has a maintenance screen that we can view and "force" I/O points, but the TEST mode does all this for the teams. Thank you for this.
It was there last year too.

We were going to store our device references in global variables instead of the Refnum Registry, but since Test uses the registry we decided we had to use it too.
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 05:27.

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