A couple of things I see where improvements can me made. Why not just put the Case Structure right around your Event Structure and wire the error cluster to it? That eliminates the guard clause needed after the Event Structure and makes the top loop a event driven state machine. In the bottom loop, you don't need that 100 milliscond ms to Multiple. Your Deqeue Element will wait until data comes in or the shutdown clause is sent. Get rid of the guard clause since you don't need it around the dequeue element. As a matter of fact, I'd put one large case structure around the entire Consumer Loop While Loop and wire the error cluster to it just like I mentioned in the top loop. Doing these things would make your code more efficient.
This video has helped me so much. Thank you.
Very clear and concise. Thanks a lot.
This was very helpful! Thanks
A couple of things I see where improvements can me made. Why not just put the Case Structure right around your Event Structure and wire the error cluster to it? That eliminates the guard clause needed after the Event Structure and makes the top loop a event driven state machine.
In the bottom loop, you don't need that 100 milliscond ms to Multiple. Your Deqeue Element will wait until data comes in or the shutdown clause is sent.
Get rid of the guard clause since you don't need it around the dequeue element. As a matter of fact, I'd put one large case structure around the entire Consumer Loop While Loop and wire the error cluster to it just like I mentioned in the top loop.
Doing these things would make your code more efficient.
wow, this comment of yours actually solved my current problem! thanks a lot!! Feeling lucky!
looks like a QSM