Example Code

Turn Off Auto Grow Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This utility VI will turn off Auto Grow on all structures on the block diagrams of all VIs in a given folder, including all subfolders and LLBs.

 

Description

Some LabVIEW developers can found Auto grow property a bit challenging in their applications while developing the code. Additionally, some developers do not want their block diagrams are changeable by modification and auto grow. So with that example, disabling auto grow process is getting faster and easier for single and multiple VIs.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Select VIs' folder to implement utility.
2. Do not forget to get back up of folder contents.
3. Run VI.

 

Additional Information or References

Note: This VI uses the subVI that does not reside in palettes. This subVI can reside in "Utility" folder in "Program Files." Also, make sure to make a backup copy of the folder of VIs before running this utility.

 

 

2012.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

DNatt, NI

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Eric_BOB
Member
Member
on

Thanks for this exempl, but just one question : Why do that ? Why turn off auto grow ?

Darren
Proven Zealot
Proven Zealot
on

As I mentioned in this blog post, I don't like Auto Grow because it often explodes my diagrams.  With auto grow disabled, I can manually resize structures when I want to.

-D

DNatt, NI
X.
Trusted Enthusiast
Trusted Enthusiast
on

Brilliant! I noticed some uncontrollable diagram explosion in a LV2010 VI opened in LV 2015 when browsing through nested structures and this tools fixed the problem in an instant.

jcarmody
Trusted Enthusiast
Trusted Enthusiast
on

Moo.

I've never had a diagram grow just by switching through a Case structure, but it happened today. Darren's utility saved my sanity postponed my breakdown.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7