I am working on a project to log data on 100 KS speed. I have made here demo code. when I am using the events in Loop 2 this is not executing also stream of Loop 1 not executing which is controlled by a local variable of indicator "Boolean" from Loop 2, I am using QUEUE also the Channel Writer for data stream. This is not running.
Please suggest what is problem .
because you created deadlocks!
For the "Queue" VI: the first loop starts to produce data, but is not allowed to put them into the queue as "boolean" is FALSE.
Loop2 is calling the TimeOut event case and tries to read data from the queue: as there is no data in the queue it waits forever…
This results in an Deadlock: the first loop is not allowed to place data in the queue, while the 2nd loop cannot set the "boolean" because it is waiting for data to arrive!
Got your Point.
I consider Dequeue VI in case of the Timeout Event of LOOP 2.