VI Scripting VI and Functions

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: Application Control VIs and Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

You can use the VI Scripting VI and functions to create, edit, and run VIs programmatically.

You must enable VI Scripting to use the VI Scripting VI and functions.

Palette ObjectDescription
Get Class Hierarchy from Class NameReturns an array of class names, in descending order of inheritance, from the top-level class name to the class name you specify. For example, if you specify WhileLoop in Class Name this VI returns the array [Generic, Gobject, Node, Structure, Loop, WhileLoop]. This VI works for any valid class name, regardless of whether you have scripting or private functionality turned on or off.
Get GObject LabelReturns a string containing the label text of the object you specify and a reference to that label. This VI returns the same value as the Label.Text property.
New VICreates and returns a reference to a new VI.
New VI ObjectAdds a new VI object to the front panel or block diagram of the VI specified by owner refnum and returns a reference to the new object. VI objects include any controls, nodes, calls to subVIs, and user-defined controls that you can create in the LabVIEW editing environment.
New VI Object Offset From Referenced ObjectThis cluster provides a way to define the location input of the New VI Object function as an offset from another object. Refer to the New VI Object Location Argument example VI in the labview\examples\Application Control\VI Scripting\Creating Objects directory for a visual comparison of the three acceptable types of arguments for the location input.
Open VI Object ReferenceOpens a reference to the object whose label you specify with the name/order input.
Traverse for GObjectsSearches a target for objects of a particular type and returns an array of references to those objects. The target can be a front panel, a block diagram, or any object that can contain other objects, such as a For Loop, a cluster, or a user-defined control. This VI also recursively finds objects nested within other container objects.


Not Helpful