public void UpdateCaldata() { calData = CalibrationConfig.Deserialize(mainWindow.fileName); linPullSensor = new LinearEQS(calData.pullEtalonP0, calData.pullADCP0, calData.pullEtalonP1, calData.pullADCP1); linTorqueSensor = new LinearEQS(calData.torqueEtalonP0, calData.torqueADCP0, calData.torqueEtalonP1, calData.torqueADCP1); linTemperatureSensor = new LinearEQS(0, 0, calData.ADCRefVoltage, calData.ADCMaximum); }
private void Settings_Load(object sender, EventArgs e) { calData = CalibrationConfig.Deserialize(mainWindow.fileName); pollEtalonP0.Text = calData.pullEtalonP0.ToString(); pollEtalonP1.Text = calData.pullEtalonP1.ToString(); pollADCP0.Text = calData.pullADCP0.ToString(); pollADCP1.Text = calData.pullADCP1.ToString(); torqueEtalonP0.Text = calData.torqueEtalonP0.ToString(); torqueEtalonP1.Text = calData.torqueEtalonP1.ToString(); torqueADCP0.Text = calData.torqueADCP0.ToString(); torqueADCP1.Text = calData.torqueADCP1.ToString(); ADCMaximumV.Text = calData.ADCMaximum.ToString(); ADCRefVoltageV.Text = calData.ADCRefVoltage.ToString(); ResistanceBV.Text = calData.ResistanceB.ToString(); ResistanceR0V.Text = calData.ResistanceR0.ToString(); ResistanceT0V.Text = calData.ResistanceT0.ToString(); ADCBallResistanceV.Text = calData.ADCBallResistance.ToString(); _ignoreLoad = false; }