11-14-2005 06:43 PM
11-15-2005 02:22 AM
The easiest way is to use a local variable. Create an indicator from the Task Done output, right click that indicator and select Create>>Local Variable and now you can use this to read the value of the indicator inside the loop. Once the task will finish, it will become T and stop the loop. You need to remember to reset it to F before you start running the loop, so it doesn't stop your loop the next time you run the VI.
Other options include using this indicator, but using the Value(signaling) property to update it (this will trigger a Value Change event), or some more advanced things like queues and semaphores. As said, the easiest would be the local variable.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
11-15-2005 06:19 AM