LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Response queue from multiple producers

Solved!
Go to solution

Hi,

I am having the same problem by trying to synchronize two loops. Basically my producer needs to wait for a response from the consumer before queuing other tasks for them. Can you explain a bit more what do you mean by queuing reference?

I also had the idea of using semaphores.

thnx

0 Kudos
Message 11 of 13
(573 Views)

Hi crossrulz,

I have the same issue as the one mentioned in this post. So if I understood you correctly, you suggest to create a subvi (nonreentrant) that sends messages to the queue and waits for a response. I am not really sure how would that subVI look like. Can you give a quick example pls, of a subvi that would send a message from the producer loop and then wait for a response. As it is nonreentrant means you cant have two instances running simultaneously. Sorry for bothering you, I am just a bit confused.

thank you very much for your help. 

0 Kudos
Message 12 of 13
(572 Views)

@jcswright wrote: As it is nonreentrant means you cant have two instances running simultaneously.

If you were going the Semaphore route, then non-reentrant VI does the same thing but more efficiently.

 


@jcswright wrote:  Can you give a quick example pls, of a subvi that would send a message from the producer loop and then wait for a response.

Here is an image of some actual code I have running around.



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 13 of 13
(565 Views)