10-31-2011 01:02 PM
A Question for the elders
I have made myself a nice code template VI that I wish to re-use easily. The snag is it references a type definition in a subfolder of user.lib
so when I try to RE-use my creation I encounter the dependencies of that type definition. (Sound familiar?)
I tried a few different things to solve this problem but got nowhere. I've never been able to figure this out on my own.
So my Q is there perhaps a procedure for doing this?
What I am looking for is a way to write this template so that I can drop it on a block diagram then rename the type definition that supports it without screwing up the original code template
buried somewhere in user.lib
All I could think of was to disconnect the type definition and manage it manually.
Solved! Go to Solution.
11-01-2011 12:30 PM
As you know there is such a thing as a template VI (*.vit). But there is also a template control (*.ctt). Create a template VI (with the extension *.vit) and install on its front panel a typedef control (with the extension *.ctt). When you open this template you will get a clone of it that has a clone of the control on its front panel.
Mike...
11-01-2011 07:17 PM
Thank you mikeporter!
Im excited to try that out!
11-02-2011 08:41 PM
Yay!
It actually works!
I will say this however ...
It was definately not easy to figure out the proper steps.
But once that was put aside I did manage make several of my personal favorite templates (that use typedefs) portable and that is worth a lot!
Great tip Mike!