02-16-2012 05:39 AM
I have a commercial product that contains an API as a DLL. The company has also provided LabVIEW API VI’s for each of the DLL function calls. These VI’s drill down to use “Call Function Library Mode” to access the DLL. Problem is the company has placed the version details in the DLL’s file name. They have updated the DLL and rolled the number but the VI’s have not been updated and all point at a DLL that now does not exist. There are around 30 VI’s, is there a quick way I can rename the “Call Function Library Mode” DLL path in all of them, or will I have to open every one manually.
Solved! Go to Solution.
02-16-2012 05:54 AM
Just for 30 VIs you can do this manually, or you can use VI scripting for this, something like that:
02-16-2012 06:02 AM
@Andrey Dmitriev wrote:
Just for 30 VIs you can do this manually, or you can use VI scripting for this, something like that:
Could you possibly attach the above as a VI?
Thanks.
02-16-2012 06:16 AM
Sure. Downsaved to LabVIEW 8.0
02-16-2012 06:35 AM - edited 02-16-2012 06:35 AM
It seems to only process one file in the folder and then stops. I have attacted one of the problem VI's. It seems not to be changing anyhting.
The VI has Call Library function in it, which calls "C:\Program Files\FireDiagnostics Suite 4.3\bin\FireSuiteAPIv4_3_4.dll" It needs to call C:\Program Files\FireDiagnostics Suite 4.3\bin\FireSuiteAPIv4_3_6.dll
Thanks.
02-16-2012 06:47 AM
@ChristopherPovey wrote:
It seems to only process one file in the folder and then stops. I have attacted one of the problem VI's. It seems not to be changing anyhting.
The VI has Call Library function in it, which calls "C:\Program Files\FireDiagnostics Suite 4.3\bin\FireSuiteAPIv4_3_4.dll" It needs to call C:\Program Files\FireDiagnostics Suite 4.3\bin\FireSuiteAPIv4_3_6.dll
Thanks.
The attached code shows just the idea. You may need to modify this code according to your needs.
For exampls, add cycle for all VIs in directory, etc:
02-16-2012 06:56 AM
Sometimes the most obvious solution is over looked! There are actuall more like 327 VI's. However you can do "Find and Replace" from the Edit Menu. It does open every VI though!