Go to Post We can't turn off inspiration and recognition, development and learning with a switch. It is an on-going process. If it were not, there would be no need for CD except for 6 weeks out of the year. - JaneYoung [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 20-02-2012, 18:53
JSzaday JSzaday is offline
Registered User
FRC #3936
 
Join Date: Feb 2012
Location: Michigan City, Indiana
Posts: 3
JSzaday is an unknown quantity at this point
Problems with LabView Default Code

We have had issues lately with our Robot's code, I am a member of a rookie team and this is our first time programming with LabView.

We are getting the following errors, and we are not sure why.

Quote:
Error -44061 occured at "left and right motors" in the VI Path: Robot Main.vi
Quote:
Watchdog system experation
(Occasionally saying watchdog not being fed in the status field (where it says "telaoperated enabled))

Also, the PWM1 in the code responds as PWM3 on the Digital Sidecar.

Please note, We are indeed running the default code!!!
I know it is a bit late for this, but we did have code working until yesterday, and now it is doing this

Thanks,
youiswho and JSzaday
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2012, 20:09
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Problems with LabView Default Code

First off the help menu is your friend. If you goto help>explain error, you can type in that error and it will tell you what is wrong. In your case, that won't help though because that is an undefined error.

I suggest that you go to the robotdrive palet and get the safety config off the advanced palet. Wire it directly after the refnum get, set mode the enable and the timeout terminal to 5.

Be aware that this makes your safety thread significantly slower, so you will need to be sure that you have a hand near the E-Stop when you are working with the robot and it is not on blocks. Additionally, if it pulsing PWM 3, then somewhere, your code is telling it that that is the correct channel to use. I suggest you go back through and re-read you code. Also, If you say that you HAD working code, perhaps you should improve your backup system.

Good luck and don't hesitate to come back if you have further questions.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2012, 20:14
StealthMentor StealthMentor is offline
Registered User
FRC #1802
 
Join Date: Jan 2011
Location: USA
Posts: 16
StealthMentor is an unknown quantity at this point
Re: Problems with LabView Default Code

Actually, this sounds a lot like the incorrectly made ribbon cable problem We had a similar problem until we "fixed" our KOP ribon cable. PWM 1 was responding to the signal sent to PWM 3.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2012, 20:15
SenorZ's Avatar
SenorZ SenorZ is offline
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 936
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Problems with LabView Default Code

We've had some ODD errors in the Driver Station using LabVIEW this year. I changed a Relay channel, and got a message in the diagnostics saying the Left/Right motor code was running slow.

Wish I could help, but we just reprogrammed the cRIO and it worked.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2012, 20:29
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: Problems with LabView Default Code

The System watchdog message will show up each time the robot is disabled via the field, DS, or when communications is lost or the robot is estopped.

The Safety Config is kept happy by calling a given I/O update each expected period. It can be disabled or reconfigured, but wouldn't it be better to understand if and why your code is missing updates.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2012, 20:36
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Problems with LabView Default Code

I agree, it would be good to know why it is throwing errors (what does the 44061 even mean?), but with one day left until ship, I'm sure that a rookie team just wants to bag a functioning robot.

My team, LASA Robotics, was encountering this same issue. We lengthened the safety timeout to 3 sec. and all our errors went away.

On the original issue, if you are using the KOP ribbon, you should read this:
http://www.usfirst.org/sites/default...structions.pdf

that would explain the mismatch of channels in software and hardware.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #7   Spotlight this post!  
Unread 20-02-2012, 21:03
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: Problems with LabView Default Code

The error is -44061 and the Explain error tool describes it as ...

FRC: The loop that contains RobotDrive is not running fast enough. This error can occur if the loop contains too much code, or if one or more other loops are starving the RobotDrive loop.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 20-02-2012, 21:29
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Problems with LabView Default Code

hmm, sounds pretty generic, how fast is fast?
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #9   Spotlight this post!  
Unread 20-02-2012, 21:48
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Problems with LabView Default Code

Quote:
Originally Posted by MAldridge View Post
hmm, sounds pretty generic, how fast is fast?
As fast as you tell it to be. The error is caused by the Motor Safety for the drive code (since the error cites RobotDrive as the error's source). That means that the code has exceeded the time limit (defaults to 100 ms) set for the maximum time between updates to a motor's speed (this prevents runaway motors). Each time you set a new value to the motor, the timer is reset until the next update. You can change the timeout for the safety by using the Safety Config VI (WPI Robotics Library->RobotDrive->Advanced) and setting the timeout to whatever value you want.

But in order to solve the bigger problem, I'd recommend going through your code and trying to fix anything that could be slowing it down this much. Often, an unhandled error somewhere in your code is the culprit. Or you could have loops executing within your teleop code that cause one iteration to take too long. Or you could just have too much code in your loop and it simply takes too long to execute.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #10   Spotlight this post!  
Unread 21-02-2012, 08:24
JSzaday JSzaday is offline
Registered User
FRC #3936
 
Join Date: Feb 2012
Location: Michigan City, Indiana
Posts: 3
JSzaday is an unknown quantity at this point
Re: Problems with LabView Default Code

Quote:
Originally Posted by MAldridge View Post
First off the help menu is your friend. If you goto help>explain error, you can type in that error and it will tell you what is wrong. In your case, that won't help though because that is an undefined error.

I suggest that you go to the robotdrive palet and get the safety config off the advanced palet. Wire it directly after the refnum get, set mode the enable and the timeout terminal to 5.

Be aware that this makes your safety thread significantly slower, so you will need to be sure that you have a hand near the E-Stop when you are working with the robot and it is not on blocks. Additionally, if it pulsing PWM 3, then somewhere, your code is telling it that that is the correct channel to use. I suggest you go back through and re-read you code. Also, If you say that you HAD working code, perhaps you should improve your backup system.

Good luck and don't hesitate to come back if you have further questions.
Quote:
Originally Posted by MAldridge View Post
On the original issue, if you are using the KOP ribbon, you should read this:
http://www.usfirst.org/sites/default...structions.pdf
that would explain the mismatch of channels in software and hardware.
The back ups started failing after we drove the robot to a "before the bag competition." I came in to work on it the next morning and everything went wild (the robot started turning on it's own when we enabled it!). With all this talk about bad KoP ribbons, I wouldn't be surprised if that is what is causing all of our problems. Today when I go in, I will look into it. Do you know any places (like nation-wide chains preferably) where we could get a DB37 M/F Cable on the spot?

Quote:
Originally Posted by plnyyanks View Post
As fast as you tell it to be. The error is caused by the Motor Safety for the drive code (since the error cites RobotDrive as the error's source). That means that the code has exceeded the time limit (defaults to 100 ms) set for the maximum time between updates to a motor's speed (this prevents runaway motors). Each time you set a new value to the motor, the timer is reset until the next update. You can change the timeout for the safety by using the Safety Config VI (WPI Robotics Library->RobotDrive->Advanced) and setting the timeout to whatever value you want.
OK, thanks for this too, I will try and change this in the code.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-02-2012, 08:41
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: Problems with LabView Default Code

Quote:
Originally Posted by JSzaday View Post
Do you know any places (like nation-wide chains preferably) where we could get a DB37 M/F Cable on the spot?
You can probably find one on your 2011 LogoMotion robot.
Reply With Quote
  #12   Spotlight this post!  
Unread 21-02-2012, 10:01
JSzaday JSzaday is offline
Registered User
FRC #3936
 
Join Date: Feb 2012
Location: Michigan City, Indiana
Posts: 3
JSzaday is an unknown quantity at this point
Re: Problems with LabView Default Code

Quote:
Originally Posted by Alan Anderson View Post
You can probably find one on your 2011 LogoMotion robot.
We could, if we had one, this is our first year as a team!
Reply With Quote
  #13   Spotlight this post!  
Unread 21-02-2012, 10:13
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Problems with LabView Default Code

Quote:
Originally Posted by Alan Anderson View Post
You can probably find one on your 2011 LogoMotion robot.
I think 3936 would be a rookie number.

The DB37 cables are used in computers, try a local computer store.
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
Reply With Quote
  #14   Spotlight this post!  
Unread 21-02-2012, 11:34
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: Problems with LabView Default Code

Quote:
Originally Posted by JSzaday View Post
...this is our first year as a team!
Oops. I misread your team number as 3636. Sorry about that.

Look to local teams as resources. You might try contacting someone on Team Hammond (team 71), The Black Knights (team 135) in Mishawaka, or the RoboDogs (team 2171) in Crown Point.
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 11:39.

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