Go to Post Teach them to fish by catching the first fish for them. (Give them the answer, but also give them how you came to that conclusion) - David V [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
Chief Delphi Alumni
ADVERTISEMENT

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-09-2012, 10:03 PM
DominickC DominickC is offline
Lead Programmer
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Plymouth, MA
Posts: 433
DominickC is an unknown quantity at this point
List priority?

Hello -

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.

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-09-2012, 10:39 PM
plnyyanks's Avatar
plnyyanks plnyyanks is offline
I code stuff. And run stuff.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots)
Team Role: Leadership
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Avon, CT
Posts: 593
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: List priority?

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.
__________________
Phil Lopreiato
The ÜberBots Team 1124 - Twitter - Facebook
Programmer/Webmaster/President - "It's a hardware problem"
Reply With Quote
  #3   Spotlight this post!  
Unread 02-09-2012, 11:23 PM
DominickC DominickC is offline
Lead Programmer
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Plymouth, MA
Posts: 433
DominickC is an unknown quantity at this point
Re: List priority?

This is the extent of our Teleop code. Still getting Watchdog errors.
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	25
Size:	59.6 KB
ID:	11829  
Reply With Quote
  #4   Spotlight this post!  
Unread 02-10-2012, 07:29 AM
Greg McKaskle Greg McKaskle is offline
Registered User
no team (Team NI)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 3,388
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: List priority?

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.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 02-12-2012, 10:18 PM
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Re: List priority?

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.
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 04:09 PM.

The Chief Delphi Forums are sponsored by Innovation First, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School