Jump to content

Subroutine: Difference between revisions

From LabVIEW Wiki
Category reorg
 
Line 12: Line 12:
* [http://zone.ni.com/reference/en-XX/help/371361B-01/lvdialog/execution/ LabVIEW Help >> Execution Properties]
* [http://zone.ni.com/reference/en-XX/help/371361B-01/lvdialog/execution/ LabVIEW Help >> Execution Properties]
* [http://books.google.com/books?id=jqi9G2EyktYC&pg=PA434&lpg=PA434&dq=labview+when+to+use+subroutine+priority&source=web&ots=mvOJ_9WgAr&sig=S33wuaM7G50_HrlF0KdDUAdchDo&hl=en#PPA434,M1 LabVIEW Advanced Programming Techniques >> 9.10 Subroutines in LabVIEW]
* [http://books.google.com/books?id=jqi9G2EyktYC&pg=PA434&lpg=PA434&dq=labview+when+to+use+subroutine+priority&source=web&ots=mvOJ_9WgAr&sig=S33wuaM7G50_HrlF0KdDUAdchDo&hl=en#PPA434,M1 LabVIEW Advanced Programming Techniques >> 9.10 Subroutines in LabVIEW]
[[Category:VI Properties]]

Latest revision as of 21:12, 17 June 2020

Subroutine is a priority setting in the VI Execution properties. From the LabVIEW Help:

Select subroutine priority to make the LabVIEW execution system run the VI as efficiently as possible. VIs that you set for Subroutine priority do not share execution time with other VIs. Selecting the subroutine priority also prevents any screen redraws and other system functions from occurring. You cannot abort a VI that has subroutine priority.

When to use the Subroutine Setting

  • VIs that are atomic and should not be preempted by other calls
  • Use when you have plenty of VIs that perform simple computations. It removes overhead of calling each.

External Links