LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to set the value of a control to default when I abort the program?

I am now using a analog output channel to control the voltage of a power supply. When I abort the program,  the power supply  still keeps the reading I set in the program. My question is: Is it possible to reset this value to default after I abort the program? Thank you in advance.
0 Kudos
Message 1 of 2
(2,410 Views)
No.  You should always try to avoid aborting a program.  The analog output will continue to put out the last value that was written to it.  What you would need to do is set up your program to have a shutdown mode (perhaps part of a state machine architecutre?) that outputs whatever you define as the "default" value before the program exits gracefully.
0 Kudos
Message 2 of 2
(2,407 Views)