This commit is contained in:
@@ -124,6 +124,11 @@ namespace MembranePoreTester.ViewModels
|
||||
flow = Math.Round(ConvertFlowByMode(rawFlow), 3);
|
||||
}
|
||||
|
||||
|
||||
float Pressure = await _plcService.ReadPressureAsync(StationId);
|
||||
CurrentPressure = Math.Round(rawPressure, 2);
|
||||
|
||||
|
||||
if (pressure <= 0 || flow <= 0)
|
||||
return;
|
||||
CurrentFlow = flow;
|
||||
@@ -1163,6 +1168,12 @@ namespace MembranePoreTester.ViewModels
|
||||
set => SetProperty(ref _currentFlow, value);
|
||||
}
|
||||
|
||||
private double _currentPressure;
|
||||
public double CurrentPressure
|
||||
{
|
||||
get => _currentPressure;
|
||||
set => SetProperty(ref _currentPressure, value);
|
||||
}
|
||||
|
||||
|
||||
// 修改命令初始化(构造函数中)
|
||||
|
||||
Reference in New Issue
Block a user