by using a valve in a system with several pump or motor chambers, wherein the flow path through the chambers can be changed