Go to Post Blue Nitrile Tread is the best smelling wheel tread. #thingsyoufigureoutat2AM - Ginger Power [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 16-02-2013, 09:16
Dreuxtray Dreuxtray is offline
Registered User
AKA: Dreux Trahan
FRC #4336 (Ramageddon)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Louisiana
Posts: 4
Dreuxtray is an unknown quantity at this point
Priority programming

Is there a way to set priorities for certain parts of a program? I would like to be able to have a section code be able to run, but be able to have my controllers take a higher priority and be able to override the code if something goes wrong. Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2013, 10:39
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: Priority programming

Priorities can be applied to VIs or to Timed Loops.

Doing this without understand how to use priorities will likely wreak havoc, but if used correctly, it can shorten delays for critical code.

To set priorities on a VI, you open the VI and go to the Properties dialog under the File menu or the right click to the icon. The execution page lets you set the priority to five levels an unrelated item called subroutine.

The timed loop can replace a while or for loop and you can set the priority as a numerical value.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2013, 12:52
Dreuxtray Dreuxtray is offline
Registered User
AKA: Dreux Trahan
FRC #4336 (Ramageddon)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Louisiana
Posts: 4
Dreuxtray is an unknown quantity at this point
Re: Priority programming

Thanks for the help!
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 22:49.

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