Create Template VeriStand Project

Updated Sep 28, 2024

Reported In

Software

  • VeriStand

Issue Details

For many VeriStand projects, there may be common features across them like I/O configuration, custom devices, etc...while other functionality may need to change such as models, screen files, etc...How can I create a template project so that I have a starting point for new projects that reuse some of the common features?

Solution

To create a custom template project that appears in the Projects section of the Launcher, follow these steps:
  1. Create the template project with the desired name. It is recommended that the folder on disk contains the dependent files (i.e. VeriStand project files, documentation, etc...).
  2. Copy the template project folder to <Public Documents>/National Instruments/<NI VeriStand 202x>/Examples.
  3. Create a text file and save as "template_name".contentdef in the Examples directory. This text file should include the following information:
<?xml version="1.0" encoding="UTF-8"?>
<ContentDefinition xmlns="http://www.ni.com/PlatformFramework" PageIdentifier="{7B498882-3276-4C51-A84A-D835178F080B}">
  <ProjectFileReference StoragePath="{template_name}/template_name.nivsprj"/>
</ContentDefinition>



 

Additional Information

For distributing to other machines, the template project folder and .contendef file must be distributed to the directories mentioned.