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?

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

Thanks for the help!