Go to Post Darn IFI and AndyMark for making quality products! :) - Gabe [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 14-01-2010, 15:52
JSonntag JSonntag is offline
Registered User
FRC #0486 (Positronic Panthers)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: United States
Posts: 16
JSonntag is on a distinguished road
Send a message via AIM to JSonntag
Problem with System Watchdog

I'm having a problem with the system watchdog timing out whenever I click on one of the tabs in the driver station window. We loaded the unedited default code into our test bed and the problem was still there, so as far as I can tell it has nothing to do with any of the changes we have made.

I also tried to edit the timeout length of the system watchdog by using the Watchdog Configure VI (not sure if it is a standard VI or not), but then the code wouldn't load.

Is anyone else having the same problem, and does anyone know of a fix?

EDIT: I disabled the user watchdog and the error still occurred, so I am almost certain it is a problem with the system watchdog.

Last edited by JSonntag : 14-01-2010 at 16:37.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2010, 21:55
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Problem with System Watchdog

I am having this issue as well. Brand new project deployed without anything changed, but the watchdog times out as indicated on the driver station console. Anyone know how to fix this?
__________________
Twitter Profile
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2010, 15:53
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: Problem with System Watchdog

If the message is about a User watchdog, then your approach is correct, but the system watchdog is totally independent and not affected using WPI APIs.

It would be really useful to know the user actions or other conditions that provoke the system watchdog printout. The driver station uses a tab change as a hook for saving off the configuration file. Producing this file is likely delaying a control packet long enough for the cRIO system watchdog to temporarily glitch.

The diagnostic print statement to catch these short watchdog glitches wasn't even in last year's system, and were only added in December, thus we don't have enough experience with when they may occur. Internal and beta testing found and corrected a few issues that produced noticeable and reproduceable glitches. If the tabs or another action triggers a system watchdog that interferes, there are many ways of dealing with them. Once again, at this point, please describe as fully as possible, the background and steps to reproduce.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 15-01-2010, 18:36
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,817
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: Problem with System Watchdog

I get one or more messages:

"Watchdog Expiration:System 4, User 1"

whenever I switch from the Diagnostics tab to the Operation, Setup, or IO tabs and back again. This is with the default robot project running on the robot. The messages do not begin appearing until the robot is Enabled.

I also get the message periodically, maybe 1 every 10 min., if I just let it sit doing nothing with the Driver Station.

e.g.,
(on Operation tab)
Enable
(on Diagnostics tab)
Watchdog Expiration:System 5, User 1
Watchdog Expiration:System 4, User 1
(back to Operation tab)
(back to Diagnostics tab)
Watchdog Expiration:System 8, User 1
Watchdog Expiration:System 6, User 1
(back to Operation tab)
(back to Diagnostics tab)
Watchdog Expiration:System 12, User 1

and so on as long as I choose to switch back and forth.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 15-01-2010 at 19:05.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2010, 19:25
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: Problem with System Watchdog

This is helpful. Is this with the LV development environment running on the Classmate too?

The WD trigger when clicking on a tab makes sense to me and isn't really concerning. I assume that teams will not be tabbing repeatedly while driving the robot. I will also try a few simple things to see if we can eliminate this glitch.

The once per ten minute glitch. Was this on a particular tab? The diagnostics tab in particular is pinging a handful of devices.

Finally, do you have a stop button attached? Do you have joysticks attached?

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 15-01-2010, 19:55
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,817
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: Problem with System Watchdog

I kept it simple.

Driver Station & default Dashboard w/update on the Classmate.
cRIO with v19 image.
Default LabVIEW Robot Project downloaded.

Not logged into Developer account.
Nothing else is running on the Classmate.

E-stop

USB Hub
- (1) joystick
- IO board (with & without)

Classmate direct cabled to cRIO, so no router or bridge in the loop.
P.S. Camera connected to cRIO, but failing to communicate (that's what I'm really working on-workshop tomorrow).

The WD while sitting occurs on the Diagnostics tab.
I'll try leaving it for awhile on the Operation tab before switching to the Diagnostic tab.

P.S. I'll run a few more repeats to see how repeatable it is.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 15-01-2010 at 20:02.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-01-2010, 20:35
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: Problem with System Watchdog

Thanks so much. This lines up with our test results. If you find anything else, especially anything that you think would affect a match or practice, please post the conditions. We will start looking at improvements next week.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 15-01-2010, 21:07
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,817
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: Problem with System Watchdog

The initial WD occurs each time I switch between Enable and Disable just staying on the Operation screen, but I suppose that's to be expected and seems harmless.

Of course that means I'll see one or two WD messages whenever I switch back to the Diagnostics tab to check on things. The error messages need time stamps.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 16-01-2010, 19:15
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,817
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: Problem with System Watchdog

A team had a problem running the Tank Drive example and it appears to throw a WD error every few seconds.
Both using Run and building a real-time application.
I haven't looked into why that may be.

The default robot project also throws WD errors every few seconds when the camera is active and displaying on the dashboard AND the DS is on the Diagnostics tab. It doesn't happen when the camera is active, but the dashboard is not processing the video, and it doesn't happen when the camera is disabled. It doesn't happen (edit) as much (/edit) when the DS is left on the Operations tab either. It does still throw a lot of WDs when left alone for awhile on the Operation tab.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-01-2010 at 21:12.
Reply With Quote
  #10   Spotlight this post!  
Unread 17-01-2010, 00:27
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Problem with System Watchdog

I'm having some different watchdog issues.
I doubt they're related, but I thought I might keep them in the same thread.

When I enable the robot the RSL continues flashing rapidly, but the LED that usually is in synch with the RSL is solid, with a flicker every couple of seconds.
The Jaguars remain flashing amber.

I have the updates on the DS and the cRIO re-imaged. Default code, default configuration. (It made no difference whether I ran the code "live" in the developer account, or if I built and deployed it as a startup application, running the DS in the Driver account.)
However, I had a pre-built robot running fine at Kickoff, before the update.
__________________
-- Marshal Horn
Reply With Quote
  #11   Spotlight this post!  
Unread 17-01-2010, 07:26
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,817
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: Problem with System Watchdog

Quote:
Originally Posted by kamocat View Post
When I enable the robot the RSL continues flashing rapidly, but the LED that usually is in synch with the RSL is solid, with a flicker every couple of seconds.
The RSL continuously flashes if you only wire to two of the terminals.
You need to add a jumper wire between the center and one end terminal on the RSL (La to Lb).

The Digital Sidecar LED is correct and the flickers might reflect the WDs as they occur.
The LED also does a long-on, short-off sequence when the robot is in Teleop-Enabled (different this year) that could be an alternate explanation of your particular blink sequence. Depends on the flickering.
The Jaguars blinking mean they aren't opened or aren't enabled, so it sounds like you might have a mixture of things going on there from code to no code.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-01-2010 at 08:44.
Reply With Quote
  #12   Spotlight this post!  
Unread 20-01-2010, 00:02
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Problem with System Watchdog

Y'know what?
I found the problem, and I feel pretty silly.
Before wiring, I've learned to color-code everything so I don't get it backwards. Most of the connectors on the control system have documentation as to which way they go, right on the case. However, since that's not easy to see in low-light conditions (ie through scratched safety glasses, under a mechanism, in the pit), I color-code.
Since almost everything was labeled, and I was familiar with the control system, I didn't check the documentation before coloring.
I colored the PWM headers on the digital sidecar backwards.

So yes, all is solved. This rookie team had their first drive practice today!
__________________
-- Marshal Horn
Reply With Quote
  #13   Spotlight this post!  
Unread 22-01-2010, 19:41
GGCO's Avatar
GGCO GGCO is offline
Registered User
AKA: Grant
FRC #3357
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Michigan
Posts: 406
GGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to behold
Send a message via AIM to GGCO
Re: Problem with System Watchdog

After spending 7 hours working on the robot today, we found a solution to our problems.
Quote:
First some background:
We heard that the system watchdog issue was cause by communications lag between the driver station and the robot. I know that wireless lag is often caused by interference and other devices using the same channel. We are working in an area that has many other Wi-Fi access points. The Linksys router we got in our kit is not dual band and only operates on the 2.4Ghz frequency. The instructions from FIRST said to set the router channel to Auto. This is bad practice in my opinion. I think it’s better to know your Wi-Fi environment and set a fixed channel accordingly.

How we fixed it:
We used a program called InSSIDer to scan for access points in our area. It gives a nice graph that shows which access points overlap each other. Channels 1, 6, and 11 are the best because they do not overlap. Channel 1 had the least access points so we set our router to use channel 1. After changing the channel we no longer experienced the watchdog issue.

The short version:
Try changing your router wireless router channel to 1, 6 or 11.
- Nate (the great) from Team 3357
We also disabled the watchdog and made sure to kill it in the autonomous() and operatorControl() functions. Hope that helps!

http://twitter.com/cometsrobotics
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

Reply With Quote
  #14   Spotlight this post!  
Unread 20-02-2010, 11:14
Nemo's Avatar
Nemo Nemo is offline
Team 967 Mentor
AKA: Dan Niemitalo
FRC #0967 (Iron Lions)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Iowa
Posts: 803
Nemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond repute
Re: Problem with System Watchdog

Quote:
Originally Posted by GGCO View Post
We also disabled the watchdog and made sure to kill it in the autonomous() and operatorControl() functions. Hope that helps!
Is it legal to disable the watchdog?
Reply With Quote
  #15   Spotlight this post!  
Unread 20-02-2010, 11:31
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: Problem with System Watchdog

It is legal, but is it wise? The watchdog is there to indicate when the code controlling the robot is not keeping up with timing expectations. This is a bit like pulling the batteries from the smoke alarm because it keeps going off. It solves the immediate issue, but is it wise to leave them out?

Greg McKaskle
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
Problem Getting Victors to run with the new control system Boommaster713 Programming 11 15-02-2010 15:29
cRIO system watchdog kamocat NI LabVIEW 2 30-10-2009 23:53
System: Watchdog problems dboisvert C/C++ 7 16-02-2009 02:36
System: Watchdog problems dboisvert C/C++ 1 15-02-2009 20:12
[FTC]: Problem with Code or Problem with Bluetooth? VeedotJaydot FIRST Tech Challenge 3 27-01-2009 18:22


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

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