What is LabVIEW VI Scripting?

Updated Jan 7, 2020

Reported In

Software

  • LabVIEW

Issue Details

I would like to automate certain repetitive tasks in the LabVIEW coding procedure, such as; aligning objects, wiring terminals, creating, moving and editing the block diagram and front panel.
Is this possible? How can I accomplish this?

Solution

LabVIEW VI Scripting is an API that helps you programmatically generate, edit, and inspect LabVIEW code. It contains several 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.

With VI Scripting, you can reduce the amount of time you spend on repetitive VI editing tasks, such as:
  • Creating several similar VIs
  • Aligning and distributing controls and indicators
  • Displaying or hiding control and indicator labels
  • Wiring block diagram objects
LabVIEW VI Scripting is installed by default on LabVIEW 2010 and later, enable VI Scripting via Tools>Options>VI Server and place a checkmark in the Show VI Scripting functions, properties and methods checkbox.

The LabVIEW Example Finder has some VIs that show the functionality described above inside the folders Programmatically Controlling VIs> Editing and Inspecting VIs (VI Scripting).

Image_2019-12-11_11-47-32.png

Additional Information

  • For LabVIEW 8.6 and LabVIEW 2009, download and install LabVIEW Scripting at NI Labs: LabVIEW VI Scripting
  • Since this is an NI Labs product, NI does not support LabVIEW VI Scripting. All technical issues should be posted on the API Community .

WAS THIS ARTICLE HELPFUL?

Not Helpful