diff --git a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs index e7337d4..6a8db1a 100644 --- a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs +++ b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs @@ -103,7 +103,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 if (_modbusMaster == null || _tcpClient == null || !_tcpClient.Connected) { return; - } + } float value = float.Parse(uiLabel23.Text); await _modbusMaster.WriteMultipleRegistersAsync(1, 74, c.SplitFloatToUShortArray((float)value)); //}); @@ -111,6 +111,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 } catch (Exception ex) { + MessageBox.Show(ex.Message); //ShowError($"读取数据失败:{ex.Message}"); } } @@ -1104,7 +1105,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 if (double.TryParse(trimmedLine, NumberStyles.Float, CultureInfo.InvariantCulture, out double powerValue)) { - uiLabel23.Text = $"{powerValue:F3} W"; + uiLabel23.Text = $"{powerValue:F3}"; _waitingResponse = false; } else if (trimmedLine.Contains(".") && trimmedLine.Length > 0) diff --git a/外科辅料和患者防护罩激光抗性测试仪/外科辅料最终版.gxw b/外科辅料和患者防护罩激光抗性测试仪/外科辅料最终版.gxw new file mode 100644 index 0000000..2cd1629 Binary files /dev/null and b/外科辅料和患者防护罩激光抗性测试仪/外科辅料最终版.gxw differ