LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel loop data transfer in QMH

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(2,547 Views)

@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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,461 Views)

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. 

 

0 Kudos
Message 3 of 5
(2,438 Views)
Solution
Accepted by topic author REDUANUL

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).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(2,400 Views)

Awesome and thank you @ .

 

I was in a break so that been late for sorting it out.

0 Kudos
Message 5 of 5
(2,368 Views)