01-25-2007 07:40 AM
01-25-2007 07:58 AM
My question is similar:
http://forums.ni.com/ni/board/message?board.id=170&message.id=225964
I still haven't solved. My example (incomplete) calls to vi template and makes an action. With call by reference node you would can get the value.
Vicen
WinXP / LV7.1
01-25-2007 08:00 AM
If you need to wait for the subVIs results before you can continue, simply connect the results to indicators on the front panel and use the connector pane to transfer these results back to the caller.
If you need to communicate while the VI is running, you can use any number of global communication mechanisms, from globals to queues to USR globals.
Searching the example finder for "global" should probably return some results.
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).
01-25-2007 08:01 AM
01-25-2007 08:02 AM
Attached is the code.
The calling VI is UI_3. This VI contains 2 buttons, each of which calls a different VI called EEC2 & EEC3 respectively. When one of the buttons is pressed on the caller, the child VI opens, is interactive and returns the data like I want it to. The problem is that the button on the caller never turns off so when the child VI closes, it is immediately reopened again.
01-25-2007 08:04 AM
01-25-2007 08:08 AM
It is set to latch currently. I tried to attach 3 files to my post but it only included one.
I'm going to try and attach them again. I'm new to LabView as well as using discussion forums. Bear with me. Thanks for the help!!
01-25-2007 08:21 AM
01-25-2007 08:22 AM - edited 01-25-2007 08:22 AM
There is way too much unnecessary code there. You don't need to call those sub vis by reference like that, just drop the sub vi right into your diagram. Also, the mechanism you're using to poll the button press is excessive. Take a look at the links tst posted (he goes through a lot of trouble typing those up all the time ). An event structure would be of great help to you.
I see you're on 7.1, which I can't save for, but maybe someone can whip you up an example.
Message Edited by Marc A on 01-25-2007 09:23 AM
01-25-2007 08:29 AM