private void FlowVoltageBox_ValueChanged(object sender, EventArgs e) { //the conversion factor from voltage to flow, currently set to 1 flow_voltage = ((double)FlowVoltageBox.Value) * 1; controller.FlowControlVoltage = flow_voltage; }