06-06-2017 05:24 PM
I am working on a project with many VI files, a large number using a call library function node. The call library function node makes a specific function call to a C-callable API (DLL). The single library path has changed and we need to update the path in each node in every VI using the API (DLL). Is there a tool or a good way to globally search and replace the path string across VI files spread across multiple project subdirectories?
Solved! Go to Solution.
06-06-2017 08:32 PM
Yes!
You can change the library path using scripting with the VI Snippet below. You just need to pass the new path (as a constant) and a VI Reference (you could make this a control in a subVI).
Then, you can acquire a list of all the VI references in your project, and pass them to this VI - it will change the path of the library in the CLFN node (here, it will change the first CLFN node found in testCLFN.vi to C:\new.dll). You should add a For Loop autoindexing rather than using the Index Array node, and then you should be good to go.
06-06-2017 09:25 PM