LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean indicator reset on program run

I have a boolean indicator in my program... depending on my inputs the boolean goes to either true or false at the end of the program. when I run the program again, the boolean is reset. my only problem is that during the second execution, the boolean retains its old value until it is reset. is there anyway i can make it default to false when i rerun the program?
0 Kudos
Message 1 of 3
(1,500 Views)
Hello,

Could you perhaps use a local variable of the boolean at the very beginning of your program (before anything else happens) to reset the value of the boolean on your front panel? That's the easiest, quickest solution I can imagine.

If I misunderstood your question, please elaborate on what exactly you are trying to accomplish. Have a nice day.

Darren
DNatt, NI
0 Kudos
Message 2 of 3
(1,500 Views)
> I have a boolean indicator in my program... depending on my inputs the
> boolean goes to either true or false at the end of the program. when
> I run the program again, the boolean is reset. my only problem is
> that during the second execution, the boolean retains its old value
> until it is reset. is there anyway i can make it default to false
> when i rerun the program?
>

Another possiblity, assuming you are using LV6 or higher is to open the
VI Property dialog from either the File menu or the Icon right click.
Select the Execution page and on that page turn on the Clear Indicators
when Called option. This works not only on subVI calls, but also on
top-level VIs. It will automatically reset indicators to defaults
before execution begins.

Greg
McKaskle
0 Kudos
Message 3 of 3
(1,500 Views)