| | |
| | | //{ |
| | | |
| | | |
| | | // double preValue = 0.0; |
| | | // double uAvg = 0.0; |
| | | |
| | | // Type t = opcConfig.standardCompensationZ.GetType(); |
| | | // FieldInfo fi = t.GetField(string.Format("station{0}", (CommonUtil.mainForm.PlateID + 1) % 5 + 1)); |
| | | // preValue = (double)fi.GetValue(opcConfig.standardCompensationZ); |
| | | // double curCompensation = standardHeightValue - uAvg + preValue; |
| | | |
| | | |
| | | // string resultStr = $"工位 {plateId},检测项 {u.Name},原先补偿值:{preValue},计算补偿值:{curCompensation},标准值:{standardHeightValue},平均值:{uAvg}"; |
| | | //Trace.TraceWarning(resultStr); |
| | | // Trace.TraceWarning(resultStr); |
| | | |
| | | //File.AppendAllText(standardCSVFileName, $"\r\n{resultStr}\r\n"); |
| | | // File.AppendAllText(standardCSVFileName, $"\r\n{resultStr}\r\n"); |
| | | //}); |
| | | //_standardResultList.Clear(); |
| | | } |