VI Scripting下載 PDF選擇的小節所選的小節與子小節完整手冊已更新2025-07-30閱讀時間為 2 分鐘LabVIEWAPI 參考LabVIEW G 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. New VI FunctionCreates and returns a reference to a new VI.Open VI Object Reference FunctionOpens a reference to the object whose label you specify with the name/order input.New VI Object FunctionAdds 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.Traverse for GObjects VISearches 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.Get GObject Label VIReturns 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.Get Class Hierarchy from Class Name VIReturns 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.Parent topic: Application Control
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. New VI FunctionCreates and returns a reference to a new VI.Open VI Object Reference FunctionOpens a reference to the object whose label you specify with the name/order input.New VI Object FunctionAdds 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.Traverse for GObjects VISearches 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.Get GObject Label VIReturns 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.Get Class Hierarchy from Class Name VIReturns 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.Parent topic: Application Control
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. New VI FunctionCreates and returns a reference to a new VI.Open VI Object Reference FunctionOpens a reference to the object whose label you specify with the name/order input.New VI Object FunctionAdds 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.Traverse for GObjects VISearches 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.Get GObject Label VIReturns 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.Get Class Hierarchy from Class Name VIReturns 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.Parent topic: Application Control