ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resetting value upon program stoppage

I have a for loop that sets the value of an output according to a function node. How do I get this value to reset to 0 when I stop the program? Can I do this after the program stops running?

Thanks
0 Kudos
Message 1 of 2
(2,653 Views)
The easiest way I can suggest to do this is just to write the value of 0 to a local variable at the end of your program execution, just before it stops.
0 Kudos
Message 2 of 2
(2,653 Views)