12-18-2009 09:36 AM
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
Solved! Go to Solution.
12-18-2009 09:57 AM
12-18-2009 10:11 AM
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
12-18-2009 10:44 AM - edited 12-18-2009 10:47 AM
Here is some LabVIEW 2009 code that searches a folder or LLB file to find all VIs that match certain VI Execution Properties.