03-12-2021 03:39 AM - edited 03-12-2021 03:50 AM
Hello,
I’m facing a problem in parallel loop communication for Queue Message Handler. For simplicity I’m giving a simple example with a VI file. VI file attached herewith.
Problem:
For one event how to send event value to multiple MHL loop.
What I want to do:
I’m explaining by taking VI file as an example. I made two MHL loop. From Input Values 1 case (In MHL 1) I want to transfer the values of Input 1 and Input 2 to Input Values 2 and output case of the MHL 2. Having with this values I want to do another operation (e.g. addition and subtraction).
So, basically with same control value parallel MHL loop will execute and perform different operation.
Hopefully someone will peep into this problem.
Thanks.
- Reduanul
Solved! Go to Solution.
03-12-2021 07:57 PM
@REDUANUL wrote:
Problem:
For one event how to send event value to multiple MHL loop.
You send the value to each MHL using each MHL's queue.
03-13-2021 04:43 AM
Thank you crossrulz,
I am sending data to other MHL (using Queue) but values always remain 0. I attached my updated example VI file. I guess I messed up with data transfer wiring.
03-14-2021 07:49 PM
1. I would have the GUI loop send the message to both QMHs.
2. You messages should send the input values. Bundle the two inputs into a cluster and wire that up to the "Data" input on the Enqueue Message VI. This is why your Addition output stays 0 (the inputs to it never change).
03-19-2021 03:12 PM - edited 03-19-2021 03:13 PM