LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rename a GOOP object after it's created

Does anyone know how to rename the GOOP object (.llb) after it has been created? If the llb file is renamed, the "add function" functionality in GOOP object design window stops working.
0 Kudos
Message 1 of 10
(3,837 Views)
Alex,

You have to change the name prefix of all the VIs, while preserving the links between the VIs. There is a tool at OpenG.org called Rename Folder of VIs that will allow you to do the renaming and relinking.

Give it a try...

-Jim
0 Kudos
Message 2 of 10
(3,837 Views)
Thanks Jim. I'll give it a try. It'd be nice if this tool came built in with the GOOP wizard on the next release of the wizard, if there will be another release.
0 Kudos
Message 3 of 10
(3,837 Views)
Check out Endevo's website. They do have such a tool.
0 Kudos
Message 4 of 10
(3,837 Views)
Well, I tried using that utility and it worked. The only bad thing is that utility does not update the calls, so i had to manually update all the calls.
0 Kudos
Message 5 of 10
(3,837 Views)
Would it be able to read the "class" that I created using the GOOP Toolkit 6i? Also, it's 600 dollars. That's very pricy. Would you say it's much better overall than the Toolkit from NI?
0 Kudos
Message 6 of 10
(3,837 Views)
If you make sure that the callers are in memory before and while the "Rename Folder of VIs" tool is running, then they will "feal" the renaming -- linking them to the newly named VIs. You can then save the callers the new links will be preserved. Endevo's tool work's the same way, I'm sure.
0 Kudos
Message 7 of 10
(3,837 Views)
Yes, the new GOOP framework will read your old GOOP 1.0 classes. This new framework support single inheritance, so it is much more powerful than the old GOOP. IMO, it is probably well worth the price, for many people.
0 Kudos
Message 8 of 10
(3,837 Views)
Actually, I tried that before I wrote my comment and it still didn't work. I opened up the callers and they didn't "feel" anything. I'm not sure why, because I looked at the code of the renaming tool and the option to "Save as Copy" is false.

Also, on a slightly separate note, not only did I have to manually relink all the newly named vis, but renaming also made all the functions private. I had to manualy set each function to public so that it would be the way it was before renaming.
0 Kudos
Message 9 of 10
(3,837 Views)
> I opened up the callers and they didn't "feel"
> anything. I'm not sure why, because I looked
> at the code of the renaming tool and the option
> to "Save as Copy" is false.

This violates the laws of the Universe 😉

> Also, on a slightly separate note, not only did I
> have to manually relink all the newly named vis,
> but renaming also made all the functions private.
> I had to manualy set each function to public so
> that it would be the way it was before renaming."

That is a good point, I will add a feature the preserves "Top-Level" VIs stored within LLB. That will fix the private/public problem.

-Jim
0 Kudos
Message 10 of 10
(3,837 Views)