User Tools

Site Tools


kb:labview:vi-scripting

52 VI Scripting

“LabVIEW VI Scripting helps you programmatically generate, edit, and inspect LabVIEW code. It contains several new VI Server classes, properties, and methods so you can create, move, and wire objects; edit the connector pane; create new VIs on the fly; and more. Use LabVIEW VI Scripting to create tools for increasing development efficiency, enforcing coding guidelines, or helping new users.” (Source)

Install NI Hidden Gems, “a VI package that gives you direct access to helpful VIs and libraries that are shipped with NI LabVIEW software but not exposed in the palettes”.

Scripting property/method nodes on the block diagram can have one of the following colours:

Yellow Default (supported and documented)
Green VI scripting
Brown Private
Red Obsolete (*)

(*) Obsolete nodes cannot be created but exist only for backwards compatibility.


Helpful Functions

Private Scripting Functions

A LabVIEW.ini setting that exposes private properties, methods and events in the IDE

  SuperSecretPrivateSpecialStuff=true

A word of caution: Private functions have no or misleading documentation and are subject to change with every new version of LabVIEW.

See also KB: Accessing the Internal/Private Property Type in LabVIEW

Find Object By Label

System VIs

A System VI is a VI with an internal flag that causes LabVIEW to treat it as part of its system infrastructure: It will not show up in error list, hierarchy windows, etc. The flag can be read or changed through the private VI Server property VI: Is System VI (IsSystemVI); LabVIEW also provides a private property for listing all System VIs currently in memory. The precise editor behavior is undocumented, so project VIs should not be marked as System VIs: private properties are unsupported and may change between LabVIEW versions.

Application Version

Version number of the application. In a stand-alone application or shared library, this property returns the version of the LabVIEW Run-Time Engine.

LabVIEW Version App.Version App.VersionYear App.VersionYearNumberOnly
LabVIEW 2020 20.0f1 2020 2020
LabVIEW 2025 25.3.4f4 2025 2025

Miscellaneous

How to enable VI Scripting

Enable “VI Scripting” in LabVIEW's options

kb/labview/vi-scripting.txt · Last modified: 2026/08/13 08:22 by alexander.elbert