09-09-2016 12:06 AM
Hello.
Thanks for the great tool.
"Add new DQMH Module" works fine.
But "Duplicate Library" duplicate everything exclude one file "Test NewModule API.vi".
I open "Tes API.vi" from the module for duplication, Save it as to NewModule folder, replace all VIs with NewModule's ones.
This way I can test NewModule. But it is a very easy way to forget to replace something and introduce errors.
Is there better way to have a Tester for duplicated library?
Thanks,
Sergiy
Solved! Go to Solution.
09-09-2016 10:29 AM
Hi Sergiy,
Thanks for trying out the DQMH 3.0 Beta.
The Delacor Library Duplicator serves to duplicate any non DQMH library (including .lvlib, .lvclass, .xnode, .xctl). To duplicate a DQMH module, we have something better, you can use the traditional Tools>>Delacor>>Add New DQMH Module...
You need to add your own DQMH template to the list of available templates. This will add your own module to the list of Module Type. You will have "Singleton", "Cloneable", "Your module".
We have not fully documented this feature in the documentation on the Beta. We created the video below for NI week. The steps for creating a DQMH Template start at 1:20. Before this point, the video shows how a DQMH module gets modified to have an object instead of a local data cluster and colors the block diagram's background. This "MyNewModule" is the module that will become our DQMH template. I will list below the steps to convert your DQMH module into a DQMH template. Every step starts with the video timestamp. Make sure you replace MyNewModule with the name of your DQMH module that will become a template. It is very important that you use the same MyNewModule name for the title and path:
<?xml version="1.0" encoding="Windows-1252" standalone="yes"?>
<MetaData>
<DQMHTemplate>
<Title>MyNewModule</Title>
<Description>Replace the description with MyNewModule description. A sample DQMH module that demonstrates the plug-in functionality of the Add New DQMH Module utility.</Description>
<LocationPath>Delacor/MyNewModule </LocationPath>
<LibraryPath>MyNewModule.lvlib</LibraryPath>
<TesterPath>Test MyNewModule API.vi</TesterPath>
<CustomVIPath></CustomVIPath>
</DQMHTemplate>
</MetaData>
4. (2:18) Now you are ready to use your new DQMH Template
5. (2:40) From the Add New DQMH Module, you can now select MyNewModule as one of the options besides Singleton and Cloneable.
Regards,
Fab
09-09-2016 12:03 PM
Hi Fabiola,
Thanks!
Sergiy