Go to Post Some people need the 2x4. - Ether [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 09-02-2012, 23:03
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
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 09-02-2012, 23:39
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,113
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 - "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
  #3   Spotlight this post!  
Unread 10-02-2012, 00:23
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
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:	26
Size:	59.6 KB
ID:	11829  
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2012, 08: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,748
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 12-02-2012, 23:18
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 08:43.

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