06-02-2015 09:48 AM
From attach file, I build the queue for analog read then I need to seperate control each temperature to display led (Daq assitant2,3). When I press button every loop should stop but now it's not to stop. Led is latching when the temperature is more than threshold and I press the button. Please help me. I need to clear led to normally and every loop working properly.
06-02-2015 09:56 AM
@Chairat wrote:
... and I press the button. .
You have three buttons. Which one are you pressing? What are typical time targets?
06-02-2015 09:57 AM
You should not have two loops dequeueing from the same queue. Once on gets the data, the other loop cannot get that same data point. Once an element is dequeued, it is gone. You should have two queues, one for each consumer loop.
06-02-2015 10:25 AM - edited 06-02-2015 10:25 AM
Could you give me some of example please, Crossrulz
06-02-2015 12:06 PM
@Chairat wrote:
Could you give me some of example please, Crossrulz
An example of what? What is so hard about using a second queue when you already know how to use one?