LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to reset all the indicators after the first run?

I have quite a large application consists of several subvis, now I want to reset alll the output indicators after each run, how would I do that?
0 Kudos
Message 1 of 6
(8,814 Views)
The only ones you have to worry about are those on screens the user will be seeing. An easy way to reset those is to use the "Reinitialize All to Default" VI method.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(8,814 Views)
> I have quite a large application consists of several subvis, now I
> want to reset alll the output indicators after each run, how would I
> do that?

You might want to look at the VI Property to reset indicators when run,
or a name similar to that. This will not clear when finished, but clear
just prior to the second execution, so the data isn't sitting there from
that last run while new stuff is being collected.

Greg McKaskle
0 Kudos
Message 3 of 6
(8,814 Views)
I would clear the indicators at the start of a run, not at the end of it. That way, the results of a run are displayed even after the VI stops.
One way to clear all indicators without any code is to set the VI Properties to Clear Indicators When Called. From the VI's File menu, goto VI Properties. Under Category, select Execution, then check Clear Indicators When Called.
I don't use the Reinitialize All to Default because that resets the controls as well as the indicators. This could frustrate a user who operates some controls before running the VI.
If you want to select which indicators to clear, you can use local variables or the Value property on a Property Node, or the Reint To Dflt method on an invoke node for the individual controls to be cleared.
0 Kudos
Message 4 of 6
(8,814 Views)
dear sir,i know this is an old thread but i dunt understand how to rset all indicators and control after the vi is stop.could u provide an example?
0 Kudos
Message 5 of 6
(8,492 Views)

On the Application Control palette, select Invoke Node. right click on it and select 'Select Class>VI Server>VI>VI'. Right click on it again and select 'Methods>Default Values>Reinitialize All to Default'.



Message Edited by Dennis Knutson on 03-29-2008 10:28 AM
0 Kudos
Message 6 of 6
(8,479 Views)