06-10-2011 09:50 AM - edited 06-10-2011 09:53 AM
I'm currently moving a large project from LV7 into a LabVIEW Project in LV10. In the process, I discovered that the project contains several copies of native NI VIs. I'd like to remove these copies, and point all the callers of these copies to the VIs in vi.lib and elsewhere.
What's the best way to do this? I tried removing the copies and doing a mass compile, but I'm still left with many broken links to missing VIs, even though these VIs exist in vi.lib, which was included in the search paths during the mass compile.
I'd like to programmatically go through the project, identify all missing VIs, and replace them with the VI from vi.lib, but can't figure out how to do that last step. Below is a snippet to use as a starting point.
I should note that I can't do a "Replace all" because the project contains too many VIs to load into memory at the same time.
06-13-2011 06:07 PM
The method you described seems like a good way to go about doing this, especially if it's not going to be easy to just make a new project. I'm surprised a mass compile didn't work, but I imagine this is a very large project if you can't do a "replace all." I'm having a hard time seeing what code you have so far, and it doesn't seem to paste in correctly as a snippet. Can you post your vi that you're using as an attachment?
06-14-2011 08:10 AM
Hey Kyle. Thanks for the reply. The VI is attached.
Making a new project is certianly an option, but wouldn't fix things, because the missing VIs are dependencies, native NI VIs incorrectly linked by VIs in the project. The new project would have the same broken links.
What I'm trying to do is similar to this, except that I cannot load all the VIs into memory (1200 VIs). The "replace all" method only works when all the VIs are loaded into memory.
-Joe