New Project from Template Dialog Box
Use the New Project from Template dialog box to create a new project that is configured with the settings saved in the specified template file.
Select File»New»Project from Template to open this dialog box. The New Project from Template dialog box displays a tree that lists the templates that are available on the computer. When you select a template from the tree, LabWindows/CVI displays a description of the selected template in the field to the right of the tree. The New Project from Template dialog box provides the following options:
- Project name—Specifies the name used to identify the new project. LabWindows/CVI substitutes [[PROJECTNAME]] in the filename of the new .prj file with the text you enter in this option.
LabWindows/CVI also uses Project name as part of the value of the [[PROJECTNAME]] template variable. When you create a new project, the [[PROJECTNAME]] template variable becomes the text you enter in Project name plus any other text in the template filename, excluding [[PROJECTNAME]]. For example, if your template filename is [[PROJECTNAME]]_Templates.prj and you enter TestCode for Project name, the [[PROJECTNAME]] template variable is TestCode_Templates. - Project folder—Specifies the location in which LabWindows/CVI creates the new .prj file. Click the ... button next to this option to browse to a different folder.
- Project path—Displays the full pathname of the new .prj file LabWindows/CVI creates. You cannot edit this pathname directly.
- Add this project to the current workspace—Adds the new project to the existing workspace. If you do not add the new project to the existing workspace, LabWindows/CVI creates a new workspace for the new project. This option is not available if the template contains a workspace file.
- More Options—Launches the Transfer Project Options dialog box, which you can use to specify what options to transfer from the current project to the new project. You can transfer the following options:
- Build Options—Transfers the set of build options including, but not limited to, compiler defines, active compiler, and so on.
- Include Paths—Transfers the paths the compiler uses when searching for header files with simple pathnames. You can modify these paths by clicking Include Paths in the Edit Project dialog box.
- Command Line—Transfers the command line arguments for the program. When you run the program in the LabWindows/CVI environment, LabWindows/CVI passes the command line arguments to the main function in the argc and argv parameters.
Note If you select to transfer project options for the Command Line and you also specified a working directory in the Specify Executable and Command Line dialog box, LabWindows/CVI also transfers the working directory setting. - Source Code Control Options—Transfers the options that you can use to attach the project to a source code control system. You can modify these options by clicking Source Code Control in the Edit Project dialog box.
- Transfer from Current Project—Transfers the character encoding from the current project to the new project.
- Encoding—Specifies the character encoding for the new project.