LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a portable type definition be made?

Solved!
Go to solution

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.

 

 

 

 

 

 

0 Kudos
Message 1 of 4
(2,638 Views)
Solution
Accepted by topic author AKA_TG

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 4
(2,603 Views)

Thank you mikeporter!

Im excited to try that out!

 

 

 

 

 

 

 

 

0 Kudos
Message 3 of 4
(2,591 Views)

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!

 

 

0 Kudos
Message 4 of 4
(2,566 Views)