Create and Configure a LabVIEW SubVI 您所在的位置:网站首页 vi是什么设计是什么 Create and Configure a LabVIEW SubVI

Create and Configure a LabVIEW SubVI

2023-12-16 18:46| 来源: 网络整理| 查看: 265

Modularity, by definition, means to use modules or smaller parts for the overall objective. Within LabVIEW, program modularity means creating smaller sections of code known as subVIs. A subVI is similar to a subroutine in text-based programming languages.

The power of NI LabVIEW software lies in the modular nature of the VI. After you create a VI, you can use it on the Block Diagram of another LabVIEW program – this VI can now be referenced as a subVI. Using modular programming helps you reduce duplication of efforts through code reuse, streamline and visually clean up code, manage changes to code, and debug the Block Diagram quickly.

SubVIs contain front panels and block diagrams which you specify when creating the subVI. Unlike built-in LabVIEW function, when creating these VIs yourself, you must configure the a connector pane to set your VI’s inputs and outputs. You can also edit the icon of the subVI that is seen when it is on the block diagram to be an intuitive representation of what your function does.

In this tutorial, you will learn how to create a subVI, how to edit its icon display, and how to build and configure the connector pane. Creating and editing subVIs is a process available in all LabVIEW development systems. This tutorial will be useful for a beginner LabVIEW user or a user who is looking to capitalize on the modular design benefits of LabVIEW. 



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有