LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I perform a Reset....

Hi all,
I'm new to LV and have a question...
I have a small VI diagram which samples a boards test points for voltages,
if the voltage is
within limits is sets an boolean indicator to show the result. After the
board has been tested
I would like the indicators to be reset to there off condition. Is there an
easy way to reset all
indicators to there default conditions after a test run while the VI is
still running, I'm thinking
of a master reset VI which doesn't require wiring to individual indicators.
Thanks

Nick
0 Kudos
Message 1 of 3
(2,801 Views)
Open a reference to the VI, wire it to an invoke node and select the Reinitialize all to default method, close the VI reference...that's it. You can put it into a sub-VI and have it accept a string with the VI name or the VI path as input.

If there was no such method you could have accessed the properties of all objects by getting a reference to the front panel and from there an array of references to all objects, then you could reset their values in a for loop that was fed that reference array.
0 Kudos
Message 2 of 3
(2,801 Views)
Thanks Mads,
I'll read up on this today and try it out.


"Mads" wrote in message
news:506500000005000000EA4B0100-1073519706000@exchange.ni.com...
> Open a reference to the VI, wire it to an invoke node and select the
> Reinitialize all to default method, close the VI reference...that's
> it. You can put it into a sub-VI and have it accept a string with the
> VI name or the VI path as input.
>
> If there was no such method you could have accessed the properties of
> all objects by getting a reference to the front panel and from there
> an array of references to all objects, then you could reset their
> values in a for loop that was fed that reference array.
0 Kudos
Message 3 of 3
(2,801 Views)