Jump to content


Photo
- - - - -

How to update all functions of a wrapper

dll wrapper update function

  • Please log in to reply
4 replies to this topic

#1 spaghetti_developer

spaghetti_developer

    Very Active

  • Members
  • PipPipPip
  • 84 posts
  • Location:Lainate
  • Version:LabVIEW 2010
  • Since:2004

Posted 22 March 2012 - 02:57 PM

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?

#2 Yair

Yair

    Extwemely Active

  • Members
  • PipPipPipPipPipPip
  • 2,652 posts
  • Version:LabVIEW 2009
  • Since:2003

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 drjdpowell

drjdpowell

    The 500 club

  • Premium Member
  • 562 posts
  • Location:Oxford, UK
  • Version:LabVIEW 2011
  • Since:1999

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 ned

ned

    Extremely Active

  • Members
  • PipPipPipPip
  • 394 posts
  • Location:Menlo Park, CA
  • Version:LabVIEW 2009
  • Since:1999

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.

#5 spaghetti_developer

spaghetti_developer

    Very Active

  • Members
  • PipPipPip
  • 84 posts
  • Location:Lainate
  • Version:LabVIEW 2010
  • Since:2004

Posted 30 March 2012 - 12:47 PM

Thank you guys for your advices....