DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

DQMH 3 and LV15. "Duplicate Library" does not duplicate "Test NewModule API.vi"

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(4,315 Views)
Solution
Accepted by topic author Sergiy

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:

  1. (1:40) Save your DQMH Module in <LabVIEW Data>\DQMH Module Templates\Source\Delacor\MyNewModule
  2. (1:53) Save the Test Module API templae at in <LabVIEW Data>\DQMH Module Templates\Source\MyNewModule
  3. (2:10) Create the DQMH Module Template MetaData XML file and save it in <LabVIEW Data>\DQMH Module Templates\MetaData\MyNewModule.xml
    • (2:14) XML Contents are:

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

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
0 Kudos
Message 2 of 3
(4,000 Views)

Hi Fabiola,

Thanks!

Sergiy

Message 3 of 3
(4,000 Views)