LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reuse Class

Hello,

 

Hopefully a simple question.

 

I have a class hierarchy that I want to reuse.  How do I copy the class hierarchy to a new project?

 

Thanks

Dan Shangraw, P.E.


   

0 Kudos
Message 1 of 3
(3,369 Views)

Questions about reuse may be simple, but the answers are not.

 

Paths in LV are relative, so the naive answer is that you simply copy all the files and folders in the same structure. If you copied everything correctly, this new copy works in exactly the same way as the original.

 

If you actually want to have a single copy shared between multiple projects, you would usually want to have it installed in a shared location. People often prefer this to be in a logical path, like vi.lib, because then it allows you to have multiple copies of the same code for different LV versions. Many people prefer having the source for the reuse component as a separate project and use something like VIPM to deploy the release reuse component to vi.lib.

 

Anyway, that's the 60,000 feet review of the topic.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(3,312 Views)

Thank you for your reply.

Dan Shangraw, P.E.


   

0 Kudos
Message 3 of 3
(3,292 Views)