![]() |
Labview Watchdog issues
We are using labview and our robot is up on blocks. We started a default project that uses the arcade settings. Teleoperated works fine but when we put code in the autonomous iterative vi it goes into watchdog whenever autonomus is enabled. We have tried feeding the watchdog as well as just killing it but to no avail. Suggestions on how to make the watchdog happy.
|
Re: Labview Watchdog issues
Please search the forum using the word "watchdog" - there are several threads on this already.
|
Re: Labview Watchdog issues
Quote:
|
Re: Labview Watchdog issues
I'm having a problem with Watchdog. Two days ago I try to run code that was working just fine but every time I hit enable on the dashboard there is a message of Watchdog not feed, and joystick won't work, The robot won't respon. I read that their was a 'bug' in NI labview, what are they talking about? How can I fix the Watchdog problem?:confused:
|
Re: Labview Watchdog issues
The bug related to watchdogs is that the driver station would occasionally be late sending the control packet and the cRIO now prints messages to log the watchdog glitches, no matter how short they are.
The watchdog not being fed message tends to occur when the watchdog is enabled and actually not fed. Greg McKaskle |
Re: Labview Watchdog issues
Would deleting the watchdog completely from the Labview project help any? how do I go about repairing the problem (stop the watchdog glitches)?
|
Re: Labview Watchdog issues
You can disable the watchdog or you can delete the watchdog VIs. However, you may be better off determining why the watchdog is firing.
Greg McKaskle |
Re: Labview Watchdog issues
Quote:
I have looked in Begin.VI where the Auto mode is set, in Robot Main in the Autonomous Enable case and in Autonomous Independent.VI itself and have not been able to find a false constant that looks like it would disable autonomous code. I even checked Autonomous Iterative just to be sure. Any hints on where I should be looking for this? |
Re: Labview Watchdog issues
Quote:
|
Re: Labview Watchdog issues
Quote:
|
Re: Labview Watchdog issues
Quote:
Perhaps it would help to verify in Begin whether they are using the Auto Independent or Auto Iterative. I'd suggest the independent. Open the VI and reproduce the issue. You can put down probes, turn on exec hilighting, or pause from time to time to see where the code is. Is there a loop that doesn't feed or delay & feed? If you get it down to that VI, post it and I suspect someone will spot the issue. Finally, I did run into teams who simply press the Run button on auto and were surprised it didn't work. Make sure they are running auto by running main and putting the DS into auto mode. Greg McKaskle |
Re: Labview Watchdog issues
Tracking down the watchdog error isn't actually a big deal as it isn't their code causing the issue.
They put some code in Iterative, but Begin still pointed to Independent. Independent still had the default code in it so it appears that it was the default code triggering the watchdog error. While this isn't a huge deal, I am curious as to what is happening. Taking a look at that code it seems to me like if there is no target on screen then the loop will exit the first time through (Rotate to target tries to turn to Gyro=0 and is already there) and the code will move to the arcade drive command with the 0 input. At this point the watchdog will time out right? |
Re: Labview Watchdog issues
Technically, yes. If their auto finishes, they've said they don't want to do anything else for auto and the robot will spend that time disabled due to no watchdog.
Greg McKaskle |
Re: Labview Watchdog issues
what would happen if you deleted the watchdog vi's, like Greg McKaskle suggested?
|
Re: Labview Watchdog issues
Quote:
|
| All times are GMT -5. The time now is 16:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi