LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create template with other vi's on the hierarchy that needs to be unique

Solved!
Go to solution

Hello community,

 

I've having difficulties creating a template that has other vi's inside. An example is attached:

 

jorgeamaralptboschcom_0-1733148063588.png

 

This is based on the JKI state machine and I added some code to build a template for my team that has three files inside. Those needs to be customized each time is used. 

If I modify the file extension to be template everytime I open "TemplateMain.vit" and then save then I need to save a rename all these files. Is it a better way to do it?

0 Kudos
Message 1 of 6
(243 Views)

Remove your email from your user name!

0 Kudos
Message 2 of 6
(224 Views)

@JorgeAmaral wrote:

This is based on the JKI state machine and I added some code to build a template for my team that has three files inside. Those needs to be customized each time is used. 

If I modify the file extension to be template everytime I open "TemplateMain.vit" and then save then I need to save a rename all these files. Is it a better way to do it?


Not with templates. Templates is a 25 year old construct that didn't age well.

 

If the VIs (controls) lived in a class (or library), a "save as" would save all the code in it with it's own name spaced linkage..

0 Kudos
Message 3 of 6
(224 Views)

It's already modified but it's not updating!

0 Kudos
Message 4 of 6
(194 Views)

Hello Wiebe@CARYA,

 

Thanks for your support.

 

But the concept of the template is nice (but I didn't used it much) because a collegue from the group doesn't make the mistake of using it like it is on their project. It always forces the user to save it on another location.

Doing a "save as" it's a little bit different.

So, based on your idea I think that I should create a Scripting tool to use these files. What do you think?

0 Kudos
Message 5 of 6
(191 Views)
Solution
Accepted by topic author JorgeAmaral

@JorgeAmaral wrote:

So, based on your idea I think that I should create a Scripting tool to use these files. What do you think?


I think educating your colleges might be a better investment of your time.

 

Using scripting to automate 90% of a job is usually easy, but getting scripting to do something that works 100% can take a lot of time.

 

Note a tool needs to be (in random order) maintained, stored, distributed, updated, finetuned, debugged and tested.

 

YMMV, but I usually end up not even using my own tools.

0 Kudos
Message 6 of 6
(163 Views)