DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting DQMH Based Project template

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).

spec page.PNG

 

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.

 

 

add new module.PNG

Any thoughts on a work around?   Or am I making more work for myself and something like this has already been done?

 

 

Kenny

0 Kudos
Message 1 of 2
(3,864 Views)

@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?


Proud developer at Hampel Software Engineering where we turn '404 not found' into '200 OK'. Join us on Discord
0 Kudos
Message 2 of 2
(3,632 Views)