Merge branch 'master' of http://192.168.0.128:8000/Z714System
This commit is contained in:
@@ -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)
|
||||
|
||||
BIN
外科辅料和患者防护罩激光抗性测试仪/外科辅料最终版.gxw
Normal file
BIN
外科辅料和患者防护罩激光抗性测试仪/外科辅料最终版.gxw
Normal file
Binary file not shown.
Reference in New Issue
Block a user