Reference and Edit the Properties of All VIs in a Specific Directory

Updated Jul 5, 2019

Reported In

Software

  • LabVIEW

Issue Details

I have a specific directory that contains a number of VIs.
  • How do I get a list of references to all VIs in that directory?
  • How do I read or write certain properties of these VIs?

Solution

You can use the List Folder Function with the pattern *.vi to get a list of all VIs in a specific directory and use Open VI Reference to reference all VIs included in the directory over the VI Server.


Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.

You can use these references with Property Nodes and Invoke Nodes to dynamically change the VI properties at runtime.