The valve controller has an analog input for speed and a digital input for direction. The problem I am having is writing code to control the valve. When the valve is opening and goes past it's set point, I need to change direction. The problem is that the voltage is high (because the valve was being driven open) and the valve moves to fast in the other direction. I need a way to change direction and lower the voltage at the same time.
I have attached a VI I am using.
Any input would be appreciated.