From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert a program I wrote in Labview to a single block

Hi
 
I was wondering how I could create a block with an input and output from a fairly large program I wrote with connections between LabView pre-defined blocks.  The reason I want to do this is that I want to incorporate this code in a larger program without making it look untidy.
 
Thanks
-Karan
0 Kudos
Message 1 of 3
(2,330 Views)
Would I just need to create a subVI?
0 Kudos
Message 2 of 3
(2,319 Views)
Hi Karan, you can turn this VI into a "subVI". Go to your front-panel, and right-click on the icon in the top-right hand corner, and select "Show Connector". You can now connect those little boxes (terminals) to your controls and indicators. Click a terminal, click a control/indicator. Once you've done all that, right-click on the connector pane, and select "Show Icon". You can modify the icon, too. Drag it and drop it into your main VI, and you can use it as a "single block".
0 Kudos
Message 3 of 3
(2,317 Views)