Jump to content

Subroutine: Difference between revisions

From LabVIEW Wiki
Jim Kring (talk | contribs)
mNo edit summary
Line 6: Line 6:


==When to use the Subroutine Setting==
==When to use the Subroutine Setting==
{need to add best practices and rules of thumb for when to use this 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==
==External Links==
* [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]

Revision as of 07:29, 20 February 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