Go to Post Re: New to programming, any tips? Join the mechanical team :) - IndySam [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 26-03-2010, 00:28
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Getting the battery voltage

Quote:
Originally Posted by billbo911 View Post
Well, the jumper checked out normal. So now we are at a loss. We will have the robot out of the bag for four hours this Saturday, hopefully we can figure this out.

Does anyone else have any ideas what may be preventing this from working correctly?
Again, it worked fine until we did the last cRio and DS updates.
Any chance your code is now opening channel 8 on its own? This will cause a resource in use error. I'm guessing your module is ok since you said the gyro works... metal shavings in the db15 connectors can kill the slot and make all channels return 0.

If you have both analog modules installed, you could read the battery voltage from the slot 2 module.

-Joe
Reply With Quote
  #2   Spotlight this post!  
Unread 26-03-2010, 01:18
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,522
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Getting the battery voltage

We've seen this before when the analog breakout itself went bad at MARC last year - we were helping the robot next to us and NO one could figure out why they weren't getting battery voltage - so we started swapping out hardware.

You might try swapping your analog breakout.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-03-2010, 11:44
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,357
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: Getting the battery voltage

OK, found the root cause of our issue. The "Diagnostics" tab on the drivers station is what pointed us in the right direction.

It turns out that one of our new programmers, a true genius but not experienced at programing, had placed a call to AI8 in the begin.vi that no one knew about. We are not using his portion of the code, so it was deleted and now we have a voltage displayed on the drivers station!!
__________________
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
  #4   Spotlight this post!  
Unread 28-03-2010, 15:58
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: Getting the battery voltage

Quote:
Originally Posted by billbo911 View Post
The ONLY thing we changed between when it worked and when it didn't was the curio firmware and the DS software.
Quote:
Originally Posted by billbo911 View Post
It turns out that one of our new programmers, a true genius but not experienced at programing, had placed a call to AI8 in the begin.vi that no one knew about.
We see here a reason for people not to get upset when the "experts" are unwilling to accept claims that nothing changed before something broke.

I'm glad you found the problem. I'm especially glad that you found it based on the diagnostic messages provided by the system.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-03-2010, 00:56
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,357
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: Getting the battery voltage

Quote:
Originally Posted by Alan Anderson View Post
We see here a reason for people not to get upset when the "experts" are unwilling to accept claims that nothing changed before something broke.

I'm glad you found the problem. I'm especially glad that you found it based on the diagnostic messages provided by the system.
Thanks Alan!

We were tearing our hair out, wait, no, I have no hair, over this one. We had swapped out the AI module, the breakout board and the jumper with no success. We were at a loss. The I remembered seeing the diagnostics tab. "What the heck" I thought, "lets see if it says anything helpful". Duhhhhhh, error on analog input, resource already in use. "Oh man, let's look at the code again". And there it was.

It's funny, I have made a living for the last 28 years troubleshooting systems. I have found that error messages are not always helpful, but sometimes they are. I have found that familiarity with the system is your best tool. I must say though, this error message definitely was helpful.

Add this one to the lesson book.
__________________
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
  #6   Spotlight this post!  
Unread 29-03-2010, 02:20
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Getting the battery voltage

Quote:
Originally Posted by Joe Hershberger View Post
Any chance your code is now opening channel 8 on its own? This will cause a resource in use error.
Quote:
Originally Posted by billbo911 View Post
It turns out that one of our new programmers, a true genius but not experienced at programing, had placed a call to AI8 in the begin.vi that no one knew about. We are not using his portion of the code, so it was deleted and now we have a voltage displayed on the drivers station!!
Hmmmmm...
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
Battery voltage Yuan Xue Lim Electrical 7 04-02-2009 23:10
paper: Reading the FTC Battery Voltage PhilBot Extra Discussion 4 16-01-2009 08:46
[FTC]: Reading the 12V Battery voltage in LabVIEW PhilBot FIRST Tech Challenge 7 12-01-2009 21:13
The 8.2 (or 8.3) Battery Voltage Bug eugenebrooks Programming 167 21-02-2008 20:05
Battery Voltage Neal Probert Programming 3 09-01-2003 10:18


All times are GMT -5. The time now is 01:37.

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