DQMH Consortium Toolkits Feature Requests

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
danny_t

Addressed to this module Needs to identify Address to this module only

Status: Declined

Hey Danny, thank you so much for your trust in DQMH and for taking time out of your day to share your idea with us.

 

We believe this can already be achieved with the current framework.

 

So, we decline this request, at least for the next DQMH version.

However, we will verify the behavior and update the documentation accordingly if needed.

Again, thank you for your input; it is most appreciated. Please keep those ideas coming!

Sorry if this has already been discussed, I did look, but failed to find anything.

 

It might just be me but I find this VI very often does not give me directly what I actually want, which is to identify when a message is address to this modules only.

 

If think the addition of a "Address to only this instance" output would be very useful and I could make a great deal more use of this VI, it would mean I do not have to get the Module Instance from the module admin myself and check it for = to the modules ID passed in.

 

 

danny_t_2-1656402047038.png

 

 

 

 

 

 

Danny Thomson AshVire Ltd
7 Comments
Jens_S
Member

I'm not sure what your use case is or how you program looks like but the VI does exactly what is meant to do. Maybe your events don't get a proper value for the "Module ID" so the "Addressed to this module" is failing or there is something else not right. I personally never had any issue with this VI so the problem might be somewhere in your application.

danny_t
Active Participant

An simple use case example of this and there are many.

 

A PSU driver clone module running.  Several instances running one per PSU, or bank of PSU's

 

When I power off PSU I happy to use the VI as it is the "Address to this instance" give me True for -1, an example of a system wide power off, or safety message, or for the matching Modules ID to command that instance to power off.

 

However I NEVER wish to power on all PSUs, I only want to power on a PSU if I am specifically addressing that instance.  You could say I should just make sure no caller of the power on PSU event should therefore call power on with the -1 option and you would be correct. But in feel it is good practice for the PSU module to police it own requirements and make sure this does not happen.

 

So I regularly do this, when I feel the Addressed to this instance should really tell me.

 

danny_t_0-1656404711683.png

 

I am very curious, is not a common type of use case for Clones, to want to ensure it is ONLY for me ? 

Danny Thomson AshVire Ltd
Jens_S
Member

I'm not sure if I understand your use case correctly so correct we if I'm wrong.

 

  • You have x PSU and a clonable instances for each of them
  • You have different events for power up and power down?
  • You use the ID = -1 to power down all PSUs simultaneously if necessary
  • You only want to have a single PSU powered up at each time
  • A ID = -1 for the power up event should not power up all PSUs

If these assumptions are correct then I don't really see any problem. You can simply ignore the -1 for the power up event or raise an error so you are aware that someone or something was trying to start them all at once. Making sure that there is only one active PSU should be handled by another module at least in my opinion. You most likely can achieve this in a different way but handling the state (on/off) for all PSUs in some kind of "master" module would be a better solution by using a clear hierarchy.

danny_t
Active Participant

Your assumption is basically correct. 

 

Your statement

"If these assumptions are correct then I don't really see any problem. You can simply ignore the -1 for the power up event"  is 100% correct and what I want to do but how ?

 

I want to ignore -1 and act only on Module ID in request = my module ID from the Mod Admin

 

The current "Address to this instance" Boolean out of the Addressed to this module.vi does not do that it does not distinguish between address to all and ONLY addressed to me.

 

I feel in my option (and I may well be wrong), that the current True out of both outputs in the -1 input case tells me nothing useful and is a waste of the "Address to this instance" bool, unlike a False from both output with is useful.

 

I have always wondered why the output was not called "Address to only this instance" and implemented as such

 

I can easily do this by getting the Modules Id from the  Mod Admin and checking it.

 

 

 

 

 

Danny Thomson AshVire Ltd
Jens_S
Member

This should do it

 

Addressed only to this module = addressed to this module and not addressed to all

Jens_S_0-1656412978018.png

Edit: This won't work if you use the cloneable module as a singleton.

 

danny_t
Active Participant

Yes that will work, as will the solution I posted earlier, I am not saying it cannot be done.

 

I just feel to me it has always felt something that should be do directly by the VI designed to do this "Address to this modules.vi" and am therefore making a request. 

 

It not an issue to me if it is rejected.

 

danny_t_0-1656416265344.png

 

Danny Thomson AshVire Ltd
mbaudot
Active Participant
Status changed to: Declined

Hey Danny, thank you so much for your trust in DQMH and for taking time out of your day to share your idea with us.

 

We believe this can already be achieved with the current framework.

 

So, we decline this request, at least for the next DQMH version.

However, we will verify the behavior and update the documentation accordingly if needed.

Again, thank you for your input; it is most appreciated. Please keep those ideas coming!



Matthias Baudot | Software Architect | Founder at STUDIO BODs | DQMH® Consortium Board Member


STUDIO BODs     BLT for LabVIEW     LabVIEW Champion     Certified Professional Instructor     DQMH Trusted Advisor     GCentral Sponsor


 Check out my LabVIEW presentations and videos!