LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Searching for VIs that have specific properties

Solved!
Go to solution

I maintain a large LabVIEW project (1000+ VIs), and some portions are reentrant.  I want to reduce the memory footprint.  One method I intend to employ to do this is by changing the VI properties for some VIs.  I need to be able to search through all these VIs to locate the ones that have the following VI Execution properties set:

 

1)  "Allow debugging" checked

2)  "Reentrant execution" checked

3)  "Preallocate clone for each instance" selected

 

Once I locate these VIs, then depending on the VI's complexity, usage, and whether or not it talks to hardware resources or prompts for user input, determine whether or not it is safe to change the VI's properties to:  disable debugging, and/or select "Share clones between instances" instead of "Preallocate clone for each instance".

 

The problem I have is this:  How can I create a search that searches for VI's with specific VI property settings?

 

Thanks,

Richard Ballantyne

 

0 Kudos
Message 1 of 4
(3,138 Views)
I'm not sure how I would cycle through all the VI's, but once I figured that out I would use this property node.
--
Tim Elsey
Certified LabVIEW Architect
Message 2 of 4
(3,124 Views)

Hi Tim,

 

I think you just hit the nail on the head.  Thank you!  

I know how I can cycle through the VIs.  I just have to write a bit of code that lists the contents of a directory for all files with extension .vi, then make a loop that checks each file for the properties in that propery node you created and posted to this thread.

 

Thanks again Tim,

Richard

 

0 Kudos
Message 3 of 4
(3,109 Views)
Solution
Accepted by topic author RichardBallantyne

Here is some LabVIEW 2009 code that searches a folder or LLB file to find all VIs that match certain VI Execution Properties.

Message Edited by Richard Ballantyne on 12-18-2009 11:47 AM
Message 4 of 4
(3,096 Views)