Example Code

VI connector cleaner using VI scripting

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:

Shows how to programmatically clear the connector Pane

Description:

This code makes use of the VI scripting functionality to clear the Connector Pane of any VI that is on memory.

Requirements:

LabVIEW 2012 or compatible.

Steps to Implement or Execute Code:
1. Open the VI Scripting Project.
2. Open the Reset connectors VI
3. Go to Tools>Options>VI Server and enable the VI scripting options.
4. Open the Test VI that is in the project and notice that there are terminals connected (You can run it but there is no need to).
5. Run the Reset connectors VI
6. Select the Test VI from the Combo box.
7. Press the clear button.
8. Check in the Test VI that the Connector Pane has been clear.

 

Additional Information or References: 
The Test VI can only run once. If you missed it. Wire terminals to the connector pane and run the steps again.
Reset Connectors.PNG
"**This document has been updated to meet the current required format for the NI Code Exchange.**".

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