Programmatically Change VI Properties

Updated Jun 20, 2023

Reported In

Software

  • LabVIEW

Issue Details

  • I set the properties of a VI such that it runs when opened and also has no abort button or menu bars, and now I can't open the block diagram and stop the code so I can edit it
  • I have a large number of VIs that I want to ensure have the same properties, such as re-entrancy
What can I do to programmatically edit VI properties in LabVIEW?

Solution

To modify VI properties programmatically, the best way is to open a dynamic reference to each VI, use a property node to change the property you want to modify, then use an invoke node to save the VI again with the new modification.

The VI snippet below performs the operation for a single file with the reentrancy property.

 

 
You can navigate to Community Example: Programmatically Modify the VI Properties of a Folder of VIs  to see an example that explores a folder of VIs and modifies them one by one.