2016 Advanced User Track

cancel
Showing results for 
Search instead for 
Did you mean: 

TS9446: Project Templates - Making the Most of Code Reuse

Attached are the slides presented during the Advanced Users Track.  I've also included the demonstration code in LabVIEW 2016 - I'll try to back save later this week and post an older version.


Becky Linton
LabVIEW Champion
Certified LabVIEW Architect
Senior Systems Engineer, Konrad Technologies
GCentral
Message 1 of 7
(11,969 Views)

Hey Becky, I finally got a chance to watch your presentation (thanks mballa for recording). It was great! Here are a few points I would have made if I was there when it happened:

  1. It sounded like people were interested in deploying project templates without using VIPM, and they were concerned about LV versioning. In addition to the [LabVIEW 20xx]\ProjectTemplates folder, you can also deploy project templates into the [LabVIEW Data]\ProjectTemplates folder. When you do this, any project template in that folder will be available in any LabVIEW version on the system (that is the same version or newer as the version used to save the template). This is a handy deployment technique if you're not using VIPM.
  2. The CategoryOverrides XML is only necessary if you want to override the order in which categories appear in the left-side list on the first page of the Create Project dialog. For example, we wanted Templates to appear above Sample Projects. Since that wouldn't otherwise happen with the (default) alphabetical sorting of the list, we needed to override the order. If you don't care about the order, then you would define the categories as normal with the <Filters> tag in the meta data XML, and you would not need to do anything with CategoryOverrides.
  3. In the presentation you observed that the images and localization folders in the Simple State Machine template source were not copied over. The reason that they weren't copied over is simply that they are not present in the Simple State Machine.lvproj source file. When the Create Project dialog makes a new copy of a source template, it only copies items that are actually in the .lvproj file. So you can put whatever support files you want in your source folder, and as long as they aren't listed in the template .lvproj, they won't be copied over.
  4. For more details on creating custom project templates, see here: Using Custom Templates and Sample Projects to Develop LabVIEW Projects.
Message 2 of 7
(11,561 Views)

Thanks Darren!  I totally didn't know about #1 - that is a great idea for deployment.  When I get a chance I'm going to go back and update the slides with these comments if it is ok with you. 


Becky Linton
LabVIEW Champion
Certified LabVIEW Architect
Senior Systems Engineer, Konrad Technologies
GCentral
0 Kudos
Message 3 of 7
(11,562 Views)

Sure thing, glad to help!

0 Kudos
Message 4 of 7
(11,562 Views)

In your presentation we talked about dropping a VIT from the palette and we discovered that if you did that, you dropped the actual template, and not a new copy of it.  I suggested making an XNode, but forgot about it until today when I actually needed it.  So I posted my XNode over on LAVA.

https://lavag.org/topic/19829-drop-vi-template-xnode/

0 Kudos
Message 5 of 7
(11,562 Views)

Hi JLMommy!

Your presentation is very helpful to me to create project template using VIPM.

I am trying to create my project template using VIPM my source folder is created but mete data file not generated. While creating project template  we specify the Base path and subdirectory for source. Where we can specify the metadata file path?

 

 

0 Kudos
Message 6 of 7
(7,244 Views)

Hi JL Mommy!,

Your presentation is very useful to me to create project template in VIPM.

I am Trying to create my project template using VIPM But I have one problem.

We specify the base path and subdirectory path for source. My source folder is crated but meta data file not generated. Where we can specify path for generated metadata file?

0 Kudos
Message 7 of 7
(7,241 Views)