This page is optimized for mobile devices, if you would prefer the desktop version just click here

1.3 Create a subvi in labview

A "subVI" is equivalent to a function, subroutine, or method in other programming languages, and useful for encapsulating code that will be reusedmultiple time. A subVI is also used to develop hierarchical programs.

A subVI is the LabVIEW equivalent to “functions,” “subroutines,” and “methods” in other programming languages. You can easily create a subVI that can be used reused many times in other VIs; editing the subVI one time updates its behavior for all VIs that use the subVI, which simplifies program design and maintenance. Moreover, the subVI forms the basic method by which you can create a hierarchical program.

The screencast video below details the necessary steps to convert a conventional block diagram into a subVI by adding a connector pane and an icon . These two elements enable the block diagram to appear as an element on another block diagram with a connection pattern specific to the requirements of the task performed by the subVI. In addition, you can set the VI Description (part of the VI Properties ) of your subVI so that hovering your cursor over your subVI reveals a helpful description of its behavior.

[video] LabVIEW Techniques: Create a subVI from a block diagram
<< Chapter < Page Page > Chapter >>

Read also:

OpenStax, Musical signal processing with labview -- programming techniques for audio signal processing. OpenStax CNX. Jul 18, 2007 Download for free at http://cnx.org/content/col10440/1.1
Google Play and the Google Play logo are trademarks of Google Inc.
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use and Privacy Policy.