07-31-2006 06:23 AM
07-31-2006 06:31 AM
Could you post your code or at least a picture of your code? It's very hard to help you with such problems, if one cannot look at the code.
Imagine a customer or a user of your software calling you and telling you that if he clicks a button the program hangs. You would want to know which button and under what conditions. So do we - the more information you post, the faster you get a useful answer.
07-31-2006 07:01 AM
07-31-2006 08:48 AM - edited 07-31-2006 08:48 AM
@jemengineering wrote:
I have a while loop in a case structure whose boolean is wired to a sub vi. To the right of this structure I have a sequence that executes regardless of the while loops condition. I assumed that the program would not continue to the case structure until the while loop stopped. Then it would proceed to the case structure.
As others have mentioned, you have to familiarize yourself with the core idea of dataflow programming. One of the great powers of LabVIEW is the fact that things can occur in paralell unless there is data dependency.
A good start would be the LabVIEW beginners online tutorial:
http://www.ni.com/swf/presentation/us/labview/aap/default.htm
The quiz #1 on slide 11 deals with the above issues. Try to answer it. 😄
In your particular case, you need to force execution order. This can be done by creating a data dependency (preferred) or by the use of a sequence structure. You could e.g. create a 2-frame flat sequence and place the loop in the first frame and the case structure in the second frame.
The picture shows a few scenarios for comparison. Can you spot the differences? 🙂 Understanding dataflow is crucial for writing any LabVIEW program.
Message Edited by altenbach on 07-31-2006 06:49 AM
07-31-2006 09:53 AM