Control of the valve or purge actuator