Jump to content

What is the best way to replace a member VI in a LVOOP Class


Recommended Posts

Little Background info.

I am in the process of converting some pre-lvoop by reference class to LVOOP class (using the OpenG By Ref framework from Tomi).

My customer found a bug (and fixed it) in the pre-lvoop class.

Now I want to integrate this fixed VI in my lvoop class (every VI in the class folder are members of the lvclass).

In older LV version (before lvlib and lvclass) replacing a VI was trivial and very fast.

  • Close LV
  • Overwrite VI with bug fix VI
  • Open LV
  • Relink and resave

Now with LV class this has become significantly more convoluted and time consuming (or I am missing something obvious which is entirely possible).

The previously mentioned method does not work at all (trying it does actually put the class in a state where I can't recover other than reverting the code to the pre-overwrite)

The only way I could make it work is as follow:

  • Open the lvclass in LV
  • Remove the file to overwrite from the lvclass
  • save and close LV
  • overwrite file
  • Open the lvclass in LV
  • add the new file to the class
  • reasaved

Am I missing something? Is there a better (and faster) way to do that?

PJM

Link to comment

1) Make sure that connector panes of old VI and new VI match

2) Add new VI to class (so that it is a member) and save the class and new VI

3) close LabVIEW

4) on disk, rename Old VI as New VI and rename New VI as Old VI (meaning swap names on disk)

5) open LabVIEW and your class -- it should relink the way that you want

6) remove the VI that you don't want from the class (it will be named "New VI", but it's really the Old VI) and save your class -- you can also remove this VI from disk.

Link to comment

QUOTE (ragglefrock @ Aug 20 2008, 03:06 PM)

Not the answer you want, but copying the old block diagram and pasting over the current member's block diagram sounds easier to me. No closing LV involved.

Ya, but this is not really practical when you have SubVIS and typedef that you don't want to copy (because they already are member of the lvoop class)

PJM

Link to comment

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.