Hi guys,
I have a wrapper to a DLL which was written in C, now the DLL used from the wrapper was updated to a new version, so I have to reload the DLL into the "Call library function" for each function of the wrapper that I've already created and it is a very boring job.
Therefore, I would like to know if exists a trick to use to update all functions of a dll wrapper in one shot? Does it exist?
How to update all functions of a wrapper
Started by
spaghetti_developer
, Mar 22 2012 02:57 PM
dll wrapper update function
4 replies to this topic
#1
Posted 22 March 2012 - 02:57 PM
#2
Posted 22 March 2012 - 03:43 PM
I'm not sure what updates you want to make, but it's certainly possible to use VI server to obtain a reference to the CLF node and then change its configuration according to what you want. Here's one way:
- Enable scripting access.
- Create a VI that goes over a directory of VIs and opens a reference to each.
- For each VI, use the traversal VI in vi.lib (I think it's in Utility\traverseref.llb) to get all the CLFNs in the VI (presumably there's only one in each).
- Cast the reference down to the correct class and use the relevant properties.
- Call the Save method on the VI.
#3
Posted 22 March 2012 - 09:25 PM
In the “Call Library Function” there is an option to “Specify path on diagram”. This adds an input where the all path can be specified. If you write your all to store the path in some central store, then it can be updated for all calling VIs at once.
#4
Posted 22 March 2012 - 09:52 PM
If you used the Shared Library Import tool to generate the wrappers, I believe there's an "update" option.












