11-13-2024 11:03 PM
Hello all,
I am able to use singleton modules and similar constructs.
What I am trying to do is implement cloneable modules as illustrated in the following diagram, or to achieve something similar:
I am trying to understand how the Module ID works, but I am still struggling with it.
I have attached a LabVIEW 2021 example setup for reference.
Can anyone please guide me or help me set this up? I just need that push to get started, and I will be on my way.
Thank you in advance!
11-14-2024 02:24 AM
Hi Army,
The Module Id for a cloneable module is the unique identifier for each instance of the cloneable module.
In the DQMH example that you started your application with, the module ids get handled by the "Select Cloneable Module Instance"-Ring as a manual selector.
In your own application you probably want to handle the Module Id within your application. So when you start the module you store the module Id of the GUI modules in the data cluster of our Launcher Module. You could use individual variables if you only have a few GUI modules or an array or map if you have more modules.
In the GUI module you can do the same for the cloneable instances of the Logger and DAQ modules.
As you want to use the GUI modules in a subpanel in the launcher, I would recommend you looking at the DQMH Panel Templates from MGI: Moore Good Ideas / LabVIEW Tools Network / DQMH Panels · GitLab
(Unfortunately the VIPM package is not updated yet, but you can just copy/paste the MetaData and Source folders into the LabVIEW Data\DQMH Module Templates folder and then create your GUI module again based on the template)
Those templates include the code to very easily insert your module frontpanel into the subpanel or even have it as a
separate window.