08-18-2005 10:24 AM
I am trying to build an application that utilizes a few different levels of subvis. So for example the hierarchy simplified would be Top-level->subvi2->subvi1.
In subvi2 I have control references that update the front panel of subvi2 to display the indicators of subvi1. That all works fine.
My Top level Vi is a state machine that will call subvi2, which in turn calls subvi1. I would somehow like to pass the indicators of subvi2 to the Top-level to be displayed. What is the best way to do this?
Thanks for your help,
-Steve
08-18-2005 11:19 AM
The best way is to wire the indicators of subVI2 to the indicator terminals in its parent, your Top Level VI. The second best way would be to pass a control reference to subVI2 where you would place a property node on the block diagram and select the "Value (variant)" property. Wire whatever you want to appear on the corresponding indicator to that Value input on the property node.
You can create the control reference by right-clicking on the indicator of your top level VI and selecting the Create >> Reference option. You will also need to place a control reference control on subVI2 and assign it to the connector pane.
Dan Press
PrimeTest Automation
08-18-2005 11:38 AM
08-18-2005 03:39 PM
08-18-2005 04:13 PM
Dan,
I see what you mean, thanks. In my program I have "subvi2" running stand alone so that I can debug it. As a result I have a reference indicator on the front panel of subvi 2 going to subvi1, so that I can see the slide when I just run subvi2 and not top level. How can I do that in your example? How can I see the slide move up when I just run subvi2, and then later be able to run top level and see the slide move as well?
Thanks so much for your help!
-Steve
08-18-2005 06:48 PM
08-19-2005 08:49 AM
That works great, just what I wanted to do.
Thanks so much.
-Steve