Is there a way to have a slider control that when you let go of control it goes back to a certain value. For example I have a two way directional valve where 0 V is reverse and 5 V is closed and 10 V is forward, so when you slide the slider up the valve operates in the forward position and once you let go the slider goes back to 5 V the closed position
Attached is an example, it uses a local variable to force the slider back to a value of 5 when the user mouses up on the control. Might be a good starting point for you.