06-17-2008 11:39 AM
06-17-2008 11:56 AM
06-17-2008 11:59 AM
06-17-2008 12:07 PM - edited 06-17-2008 12:07 PM
First of all, your MainVI is empty.. It is not calling anything.. There is no code.
You also have to consider that a sub-vi can be a fully functional VI that is being called by another VI. So using event structures in a sub-vi can be quite acceptable.
However, I just don't understand why people are so attracted to Local Variables. (have a look at this thread)
There are better methods to accomplish what you are trying to do.
Let me modify your code and I will explain.
Back soon...
RayR
06-17-2008 12:10 PM - edited 06-17-2008 12:10 PM
06-17-2008 12:28 PM
06-17-2008 12:41 PM
06-17-2008 01:00 PM
06-17-2008 01:17 PM
06-17-2008 02:27 PM
Nickerbocker wrote:
I'm sorry, but I do not understand what the point in that is. It sure does look like you have to draw a lot of extra lines to make the code work w/o locals. The opperation of the VI is not as apparant w/o the locals and with the extra visual "noise" of the enqueue VI's.
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).