12-18-2019 02:08 PM
I am working on creating a project template that basically has a complete program in it when the scripting is done (the framework of a program that does the bare minimum, common components used in many of our programs).
I have a Project template, which I have located at the standard C:\Program Files (x86)\National Instruments\LabVIEW 2018\ProjectTemplates\Source
The project template pulls in the standard Config files, has the folder structure etc that we use.
I also have Template DQMH modules located at C:\Users\<NAME>\Documents\LabVIEW Data\DQMH Module Templates
and they are created through the standard Tools > Delacor > DQMH > Module > Add new Module ...
Right now, the developer has to create the template project, and then go through the menu gyrations to create new modules based off the templates (typically we use a GUI, Controller, and Database module). So repeat the Add New Module 3 times.
Now the real trick (as I see it), combining both into a single action.
I figured starting with the link on creating your own project template spec page, with allowing the developer to select whether to add the DQMH templates or not, was a good start (see custom spec page picture attached).
I planned to call the DQMH Add New Module vi using a Call By reference node, and just use the information filled in on the spec page to run the DQMH tool automatically. However, it seems that none of the controls are mapped to the Connector Pane, so I cannot use this method.
Any thoughts on a work around? Or am I making more work for myself and something like this has already been done?
12-19-2019 06:01 AM
@Kenny_K wrote:
Right now, the developer has to create the template project, and then go through the menu gyrations to create new modules based off the templates (typically we use a GUI, Controller, and Database module). So repeat the Add New Module 3 times.
...
Or am I making more work for myself and something like this has already been done?
Hey Kenny,
how often do you create new Projects? How you already work with templates seems pretty forward to me. Couldn't you just save a second Project Template, where you already have added the three DQMH Modules?