I lean heavily on the DQMH Quick Drop shortcuts to speed up my DQMH development. At first glance, the shortcuts seem to cover everything, and are intuitive. Many times, I guess what the shortcut should be and I am right ('am' for add module, etc..)
Today, I had an "ah-a" moment. I typed 'ah' for Add Helper (Loop) and realized there is no such shortcut. By poking through the Quick Drop VI, I added the feature for myself.
I am making this a feature request as it does not seem to break anything, and other users can benefit from it!
Changes that I made:
Navigate to "<LabVIEW>\resource\dialog\QuickDrop\plugins\Launch DQMH Tool.vi"
Duplicate the "create mod" event and added the following cases: "add helper", "add helper loop", "addhelper", "addhelperloop", "ah", "ahl", "helper", "helper loop", "helperloop", "hl"
The reason for duplicating the "create mod" event was so the new case aligns with the existing menu items for Tools>DQMH Consortium>DQMH>Module.
Modified the path constant to "Module\Add Helper Loop to DQMH Module.vi"
Resized the string control a little bit, and
Added a new entry for "ah" as shown (and the place chosen for the new entry was deliberate, to align with the menu items, similar to point 3).
After this, I can blissfully do "Ctrl+Space>ah>Ctrl+E" to my heart's content. "ah"! What a relief! 😄
Nigel evolving - slowly but surely - I'll want to create DQMH modules and events thanks to prompts.
In order to do this correctly a MCP server must be designed/tailored to call (silently) the wizards and fill them with relevant data so that they can operate their magic.
To do so, an API should be made available so that a MCP server can call defined methods with specific parameters.
The messages in the status display of the API tester keep accumulating endlessly. This cause at least two issues:
1. if the module is really communicative and/or if the module runs for an extended period of time then it eats more and more memory
2. after a certain amount of messages the status display can't be used to understand what happened in the past, cause first of all most likely nobody will review thousands of message by scrolling in a msgbox and also because even a small movement on the scrollbar could cause huge jumps in the messages
Suggestion:
A built in mechanism which only keeps the last "x" messages. If x is unwired or -1, then it keeps all the messages (current behavior), otherwise it keeps the last "x".
It would be useful if the description of all error in/out terminals in all DQMH VIs was cleared (set to empty string). This would save 638 characters (0.62 KB) of disk space for each DQMH VI that uses error in/out terminals. It may help reduce EXE sizes, and may help speed up project load times and EXE build times, even if just by a fraction.
I've been using cloneable modules on a regular basis. Wiring consecutive request VI calls become tedious with regards to the module ID. Having that as a pass-through makes so much more sense. This is kind of like a reference to the cloneable module if you think about it. So that wire should be treated as such on the connector pane.
Over the years I find myself adding the following two requests to my modules more and more frequently:
The MHL code for these requests is very simple, and it doesn't get in the way for modules that don't interact with subpanels. I think these requests should be added to the standard singleton and cloneable templates.
I am familiar with the "create your own module template" argument against ideas like this. I've made those same arguments before. And I've implemented my own module templates with these requests before. But present-day, I equate the utility of these subpanel functions with the utility of existing core requests like 'Show Panel', 'Hide Panel', and 'Show Diagram'.
In addition to adding these requests to the core templates, we should also add a subpanel to the API Testers to (1) be able to test these requests (obviously), and (2) demonstrate the ease with which a DQMH module can be integrated into an existing subpanel-based UI.
This is a blatant copy of an idea from 2021, but it came up in a recent customer meeting.
While I agree that modifying event arguments is possible to do manually, can we take another look at automating that?
Right now if an argument is added to / removed from the typedef, it requires the developer to manually perform a series of (scriptable) actions:
Open the public event VI
Create a new control or indicator OR remove existing
Expand the bundle/unbundle, and wire it in OR collapse the bundle/unbundle to get rid of the deleted argument(s)
Wire the new item to the conpane and set it to Required (in the case of a control)
Update the EHL case to make sure the cluster is properly bundled (can be checked by the validator)
Take care of updating the Tester
So here we have a multi-step process where things could be easily forgotten. Order of operations matters. The steps are well defined. The activity is dull. It feels like a good candidate for automation.
When creating a new Event, DQMH allows us to populate the Event’s Documentation field. This documentation is then inserted into the VI documentation for that Event.
It would be very useful if the same documentation were also copied into the Control Description for the corresponding button in the API Tester.
This would allow developers to build an API Tester, provide it to a customer for quick testing, and have the tester already include helpful user-facing documentation through LabVIEW context help.
This request is focused on simplifying the block diagram, one node at a time. it seems that when receiving a request and reply, you always need to pass the current module ID back. This seems to be a very common use-case. So common that perhaps there should be a convenient Module ID indicator on the Addressed to This Module VI? The purpose of this would be to reduce the clutter and allow more space for module functionality vs framework code.
I like the new additions to DQMH 7.1 including the Private Wait for Reply events. It's a shame however, that the feature was not fully fleshed out. It would be convenient to have the ability to convert Private Requests to Private Request and Wait for Reply.
We have identified that, if multiple clonable module instances are executed and a specific module (e.g. the first launched module) is stopped (no waiting) and afterward all open modules are stopped at once (incl. wait) the "stop module.vi" an error 1 is returning.
Steps to reproduce
Create a project and add a new clonable module
Create a tester VI and implement the code above
Run the VI and see error 1 at second Stop Module.
What is happening in the Background
Situation 1 - "Stall Data Flow" = 0
"Stop Module.vi" 2 runs into "Wait on Stop Sync.vi" and synchronizes stop over rendezvous. The acquired rendezvous size is 3 (Module 1 which is at stopping, Module 2 and Stop Module)
Module 1 is waiting in "Safe to Destroy Refnums.vi"
Module 2 runs into "Close Module.vi"
Last clone instance is fire at (1)
Releasing the Semaphore (2) will wake up module 1 that it is now safe to destroy refnums now. Module 2 runs into "Wait on Stop Sync.vi" (3) and synchronizes over rendezvous.
"Stop Module.vi" and Module 2 waiting for a third participation to join the rendezvous.
Module executes case to destroy Master reference.... and executes "Wait on Stop Sync.vi" (3) with no synchronization as the boolean "Wait for Module to stop?" is on false.
Module 1 executes "Destroy Sync Refnums.vi" (4) and is destroying the rendezvous.
Module 2 and "Stop Module.vi" will be release from the waiting of the rendezvous as the reference is now invalid and returning error 1.
Situation 2 - "Stall Data Flow" = e.g. 2000ms
In compare to the situation 1 the first module is already removed here. The obtained rendezvous has the expected size of 2.
When module 2 enters rendezvous synchronization in "Wait on Stop Sync.vi" (3) the expected amount of participant is reached, and the execution can continue.
In most of our tests, this situation worked fine and did not create an error.
For some situation, we had the behavior that shutdown of the first module seems to be faster as the wake-up from rendezvous of the second module. The module main of module 2 opened and showed error 1. Module 1 seems to destroy the references to early.
Situation 3 - First Module will be stopped with last "Stop Module.vi" call
The shutdown of a module is for this scenario delayed (add a wait 1000ms to exit case of the module)
Stop Module 2 waits for 11 rendezvous participations. (10 module and itself)
One of the previously closed module will destroy the synchronization events and makes the rendezvous reference invalid. => Error 1 at "Stop Module.vi"
The following screenshots are showing an extension of the "Stop Module.vi" and the "Close Module.vi".
The idea is to use a single element queue (SEQ) containing a map of sets. The key of the map refers to a "Stop Module.vi" which waits for stopping all module at the time when the "Stop Module.vi" is executed. The Set contains all Module ID's which should be stopped. Each module checks in its close condition if the SEQ is existing. If so, the module ID will be removed from the sets which containing the module ID. An empty set refers to all required modules have stopped and a notifier which is used for synchronization will be fired. Close Module.vi extention Stop Module.vi extention
With those extensions, all three described scenarios should be fixed. In addition, should it be possible to stop all module and launch in the background new ones, the stop and wait will wait until all those modules ID run at the stop execution are finished.
I added the project which the extensions and tests to the post.
Addition
I'm not sure, but I think that with the described change, destroy of the Module's Semaphore (1) should be done with the boolean condition of the First & Last Instance (2). (Red line)
Please let me know if you need any additional information and details.
It would be useful to be able to remove multiple events of the same module in one operation. Currently only one event can be removed at a time.
Motivation: Just now I found myself having to remove four request events from a DQMH module. This involved launching the "Remove DQMH Event" window four times. This was slightly tedious due to:
Having to navigate the relatively deeply nested menu four times (Tools > DQMH Consortium > DQMH > Event > Remove DQMH Event...).
Having to wait for the dialogue to load four times. I'm working with a large codebase. This is the single slowest step for me at the moment. Using the Stopwatch functionality of the Windows Clock app I timed this load time at around 9 seconds. I took a single measurement. I have a feeling that the dialogue took longer than 9 seconds to load in the past (perhaps as much as 15 or 20 seconds).
Idea expansion:
It might be useful to be able to delete multiple events that belong to multiple modules in one operation. This would be the most general form of the Remove operation. This is probably not a common use case, but people would find it useful every now and then.
Improvement 2
Currently the files associated with the event (the request VI, the CTL argument) are permanently deleted. It would be useful if there was a global setting that would make the deleted files go to the Recycle Bin (instead of being permanently deleted).
The excellent Delete File From Project by BasvE tool (https://www.vipm.io/package/basve_lib_lvdeletefile/) implements this functionality (global setting to dictate whether files are permanently deleted or sent to Recycle Bin).
Lumos adds "Trace VIs", when migrating this code to another PC without Lumos installed When opening DQMH module it asks for all the "Trace VIs" and breaks the code...
It be great to have another option to Remove or Un-prepare project for Lumos Tracking and be able
When using the "Rename DQMH Event" feature, the scripting tools regenerate the VI icon and erase any customization in the VI icon (icon text, icon template, layers ...).
It would be greate if the scripting tools could update icon text and "Border" layer but keep icon template or additional layers if existing.
Most of the time we create multi-layer applications, and bottom modules need to share information that might have to cross several upper layers.
To avoid coupling and jumps between any non-adjacent layers, we have to create similar broadcast in the parent modules to repeat child broadcast one layer upper.
It would be interesting to have a utility that 'copies' an existing broadcast from one module into another.
And maybe have an option to code the forwarding :
automatically register for child broadcast in the parent if not done already
in the selected braodcast EHL case, map broadcast arguments onto parent broadcast VI inputs
I guess the same thing can be done when the communication needs to go down the layers, and therfore applied to requests.
We utilize VI Analyzer in our code analysis, but when using DQMH modules, it requires a lot of copy and paste for the same issue in any DQMH event code.
I am proposing that DQMH ship with the #Via_ignore for certain VI Analyzer tests.
Examples:
-Obtain Request Events (this is a non-reentrant VI in a Shared Clone reentrant VI)
- Wired Terminals in Subdiagrams (terminals from a wait and reply are in a subdiagram)
In DQMH 7.0 you can create private requests now. This is a feature that I really like and the more you use something, the more ideas come to you.
In my current project I created a private request and shortly after I realized, that I need to call this request from another module. I tried to convert the private request into a public request, but this wasn't easy.
So here comes my idea: why is the conversation (public requests → private requests and privat requests → public requests) not included in the Convert DQMH Events dialogue? That would be the place where I would intuitively look for it.