Measurement and control of process parameters