LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ctt & vit files

Solved!
Go to solution
I created a vit file from an existing vi that used a ctl file for semaphore elements. After installing the vit template I noticed that the link to the original ctl file still exists.  I created a ctt file from the original ctl file and installed it into the directory where I installed the FSM.vit and FSMd.png files, but I am still linked to the original ctl file.  How do I create the link from the vit file to the ctl file?
0 Kudos
Message 1 of 6
(3,654 Views)

Why are you wanting to have your code linked to the ctt?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

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

For help with grief and grieving.
0 Kudos
Message 2 of 6
(3,646 Views)
My template uses this ctt template and I want it completely separate from the original ctl file that was used to create the original vit template, and any program that uses the vit to create a new vi will be using a different version of the ctl since it is used by the producer as an enumerated element.  This particular design adaptation of the produce-consumer template as I have used two times before, and each time the only major change that I  need to do is change most of the enumerated elements in the ctl which is used in many places in the vit file.  So if I create a new vi from the template I can then just edit the enumerated elements for the new project without changing the one an only copt of the ctl that was used in a previous project.  I need tight coupling within the project and no coupling between projects.
0 Kudos
Message 3 of 6
(3,625 Views)

hounddog,

 

Have you tried just removing the .ctl from the .vit and adding the .ctt in its place?  Are you using a typedef (strict or non) or just a control?

Regards,

Jared Boothe
Staff Hardware Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,598 Views)
I'm using strict type defs:  the .cit template will ultimately be used to create a .ctl of enumerated types both to run the messages from the producer to the consumer via the msg queue and as a state element in  a state machine in the consumer loop.  If I create a new project VI from the .vit template I'll end up with a VI that I can readily customize.  I also want to create a .ctl from the .cit template that is also independent of any other 'instance' of the .cit template so that various applications using this template are not tied together by a common .ctl file.
0 Kudos
Message 5 of 6
(3,517 Views)
Solution
Accepted by hounddog

Hi hounddog,

 

I created a simple .vit using a strict typedef boolean .ctl to try and recreate what you had.  I then opened the .ctl in the template VI and saved the control as a .ctt to the same folder as the .vit and it appears to be linked correctly.  I did a Save as... and then substituted the copy for the original.  Is this any different than the method you are using?

0 Kudos
Message 6 of 6
(3,496 Views)