Jump to content

How to update all functions of a wrapper


Recommended Posts

Posted

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?

Posted

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:

  1. Enable scripting access.
  2. Create a VI that goes over a directory of VIs and opens a reference to each.
  3. 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).
  4. Cast the reference down to the correct class and use the relevant properties.
  5. Call the Save method on the VI.

Posted

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.

Posted

If you used the Shared Library Import tool to generate the wrappers, I believe there's an "update" option.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.