08-31-2009 05:58 AM
I am sure all of you have different methods of reusing code, but I haven't found a method I really like, so I hope I can get some new ideas from this thread.
My primary criteria is that my projects does not use any dependencies outside it's designated folder.
My favourite, at the moment, is the "place VI contents" selectable from the palette editor, but Icon and documentation is lost in this process, so for templates this is a very impractical approach.
I would like a way to open a .vi so it is considered unsaved. Is this even possible? Or is there any other clever tricks for easy code/template reuse? Please share!
08-31-2009 06:01 AM
for code reuse you could create subVI's
08-31-2009 06:03 AM
"I would like a way to open a .vi so it is considered unsaved. Is this even possible? Or is there any other clever tricks for easy code/template reuse? Please share!"
I don't know how new you are to labview, but you could use LabVIEW scripting which is not for beginners.
08-31-2009 06:08 AM
You don't really need scripting for it. You could write a tool that browses all VIs of your project and checks if they are in the allowed scope (folder structure). If not, it would copy these files to a certain folder.
Close all, open all copied files, reopen the top level vi and save all to make the linkage.
Felix
09-02-2009 05:04 AM