12-18-2019 08:42 AM
Event firing, registering and detection, all have to exist in the same process context. No way around that.
Ben
12-18-2019 09:08 AM
OK there is a ay to do this but it is not trivial or in any way built in.
[Set Word_Salad_Mode = True]
1) Exe_Recieve
Each exe that want to register for the event should expose a Wrapped up AE that creates a User Event and can invoke the event.
2) Exe_Gen
The exe that will initiate the event can expose another Wrapped up AE that maintains an array of the connections to the OTHER served Wrapper.
3) Exe_Recieve
Invoke served Wrapper in Exe_Gen that opens a connection to the Wrapper in Exe_Recieve and the connection is added to the array.
4) Exe_Gen
When it is time to gen the event invokes the AE with the array of refs and invoke a Gen Event method using the AE in the Exe_Recieve. An event structured registered for the event then receive the event.
Using the above approach any number of Exe_Recieves can receive an User Event from Exe_Gen and with some other actions unregister as need.
[Set Word_Salad_Mode = False]
Ben
12-18-2019 04:47 PM - edited 12-18-2019 04:50 PM
Guys,
Thank you for sharing your thoughts and ideas. I have been playing around with labview and seems like for future modularity and ease in deploying modify or add-on feature for the sake of client. I believe labview have the potential of making this happen.
Ben,
How to execute all this? in Labview?
1) Exe_Recieve
Each exe that want to register for the event should expose a Wrapped up AE that creates a User Event and can invoke the event.
2) Exe_Gen
The exe that will initiate the event can expose another Wrapped up AE that maintains an array of the connections to the OTHER served Wrapper.
3) Exe_Recieve
Invoke served Wrapper in Exe_Gen that opens a connection to the Wrapper in Exe_Recieve and the connection is added to the array.
4) Exe_Gen
When it is time to gen the event invokes the AE with the array of refs and invoke a Gen Event method using the AE in the Exe_Recieve. An event structured registered for the event then receive the event.
Using the above approach any number of Exe_Recieves can receive an User Event from Exe_Gen and with some other actions unregister as need.
[Set Word_Salad_Mode = False]
12-19-2019 03:18 AM
I'm not sure OP wants to register for User Events, or the normal events (value changed, etc.). I understood 'normal events'...
12-19-2019 07:44 AM
"
I have been playing around with labview and seems like for future modularity and ease in deploying modify or add-on feature for the sake of client. I believe labview have the potential of making this happen
"
Forget (for now ) what I wrote since that "word Salad" was a literal reply to what you had questioned.
LabVIEW supports LVOOP which is Object Oriented and Dynamic Class instanciation which allows for new components to be deployed to existing exes.
Ben
12-25-2019 09:35 PM
Thank you Ben appreciate your sharing,
I guess I have to look into on LVOOP and find way on how to do so.