Control of, monitoring of, or safety arrangements for, machines, pumps or pumping installations characterised by changing the positions of the inlet or outlet openings with respect to the working chamber