Removed the const AMProcessVariable and made it a non-const for accessing the write PV inside an AMControl.