View Full Version : List priority?
02-09-2012, 11:03 PM
I was wondering if there was a way to define the priority of specific VI's within LV to cut down on Watchdog errors. I'd just like to elevate the priority of Teleop.vi.
02-09-2012, 11:39 PM
If you have Teleop.vi open, hit ctrl-I and the VI Properties window will pop up. Under the dropdown, select Execution and you can change the runtime priority. Just be careful changing things - do so at your own risk - it may break things (but I don't think it should...).
But if you want to avoid watchdog errors, why don't you just speed your code and try to make it more efficient? Because inefficient code is wasting memory, and you're probably better off making sure it's as efficient as possible before messing with priorities. If you just have too much code in Teleop.vi, maybe you can move some to Periodic Tasks where it can run in a separate loop.
02-10-2012, 12:23 AM
This is the extent of our Teleop code. Still getting Watchdog errors.
02-10-2012, 08:29 AM
The support folder in the project contains a VI called Elapsed Times. If you drop that subVI into the major portions of your code such as Teleop, Vision loop, and any Periodic loops that are used, you can then run your code and open the Elapsed Times VI. The array on the panel will show you the time between subsequent calls. You may find that some loops are running much faster than you intended and stealing CPU from the ones you care about. You may also find that the watchdogs correspond to a specific action of the driver that calls into code that competes or delays the normally scheduled code.
02-12-2012, 11:18 PM
Additionally, we have experienced watchdog errors when our wireless router was dealing with too much interference. Try moving the router away from large pieces of metal or electromechanical devices. You could also download a tool like "inSSIDer" to determine if you are having interference because of multiple networks on the same channel.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.