ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
12-09-2006 04:51 AM - edited 12-09-2006 04:51 AM
Message Edited by louis_nichols on 12-09-2006 04:52 AM
12-09-2006 09:42 AM
If you're a beginner, you probably should not be writing stuff which is important enough to be that confidential (at least that's the way I understand those censoring black marks).
As for your question, the loop will not continue running until the subVI ends execution. That's the nature of dataflow.
What you need to do is run the VI as a seperate process.
You can do this, for example, by having a second loop waiting to receive a command to run the VI or (better)
by calling the VI dynamically using the functions in the Application Control palette.
Search the help and example finder for "VI server" and "Dynamic" to find more data.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. 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).
12-11-2006 04:03 AM - edited 12-11-2006 04:03 AM
Message Edited by louis_nichols on 12-11-2006 04:04 AM
12-11-2006 04:43 AM
12-11-2006 05:37 AM
Great, man! Thanks a lot! ![]()
Now things work just as I want them to and I can really make a nice working GUI.
12-11-2006 06:19 AM
One important advice would be to give your VIs icons (at the very least text ones) and to fill in their descriptions.
Also, adding a seperate loop for each VI is not very nice. Loops should be for constant processes. If your process is dynamic, you should call the VI dynamically. Check out those tutorials.