Changed calcParameters to received subData too as input. Also changed calling to calcParameters from labData.process, and this from experimentData.process