03-30-2006 05:44 AM
03-31-2006 11:39 AM
Hi cfp!
Are the three parallel loops you're talking about then ones in cFP - Temperature Control? If so, they're not parallel at all. You're wiring the error cluster from the top loop into the middle loop and then into the bottom loop. This causes a data dependency of the bottom loop on the middle loop and the middle loop on the top loop.
Remember that a node (such as a VI, function, or loop structure) can not execute until it receives all its inputs. Furthermore, a node can't release its output values until it's completely finished executing. In the case of a while loop, this means the terminal condition must be met and the while loop has stopped executing. This means that the middle loop must wait for the top loop to finish before it can even start. And the bottom loop must wait for the middle loop to stop before it can start.
Delete the error cluster wires between the loops and you should have three bona fide parallel loops. Consider some other method of transfer between the loops for your error information if it's pertinant to your code, such as local variables, queues, notifiers, etc.
03-31-2006 11:42 AM