LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clearing subVI controls when opened

Hello,
How can I get my subVI to clear all the controls on the front panel when I call it. I have customized the window appearance (under VI properties) to "show front panel when called" and "close afterwards if originally closed" as was suggested in a previous post but do not see a "reinitialize all values to default" option for runtime execution. THanks.
0 Kudos
Message 1 of 6
(3,228 Views)
"Got to VI properties...execution" and select "Clear Indicators when called". See if this works for you.
 
For a programmatic solution, create an "Invoke node" for the VI and select method "Reinitialize all to defaults" (or similar). It works just fine while running.
0 Kudos
Message 2 of 6
(3,220 Views)

thanks altenbach,

since i am trying to clear controls, the 1st option does not work but i created invoke nodes for each of the controls that i wanted to clear and it works great. i could not figure out how to create an invoke node for the whole vi, tho.

0 Kudos
Message 3 of 6
(3,216 Views)


@jilla wrote:

 i could not figure out how to create an invoke node for the whole vi, tho.


  1. Open a VI reference wired to "current VIs Path" and hookup an invoke node. Select desired method.

(See uper part of image)

Or even simpler....

  1. Just place an invoke node from the "Application Control Palette"
  2. First right-click in the header of the node and select "select Class -> VI server -> VI -> VI.
  3. Now select method "default Values -> "Reinitailize all to defaults"

(See lower part of image)

Message Edited by altenbach on 01-26-2007 02:37 PM

0 Kudos
Message 4 of 6
(3,215 Views)
Also remember, controls can be configured as input terminals for the subVI. So to clear controls, simply wire the desired values to all the input terminals of the subVI when calling.
0 Kudos
Message 5 of 6
(3,205 Views)

Thanks altenbach,

That is cleaner than using seperate invoke nodes. I was not too familiar with the application control palette - so much to learn!

0 Kudos
Message 6 of 6
(3,196 Views)