This commit is contained in:
xyy
2026-05-24 10:36:57 +08:00
parent 24f438b81a
commit eb95de74ed
4 changed files with 140 additions and 97 deletions

View File

@@ -239,7 +239,7 @@ public partial class D7896ViewModel : ObservableObject
await Task.WhenAll(_th1963Ustd.TriggerAsync(), _fiveHalfUpt.TriggerAsync());
// 等待加热脉冲持续1秒
await Task.Delay(1000);
await Task.Delay(1);
// 停止加热
await _plcService.WriteCoilAsync(_config.PlcRegisterAddresses.StartCommand, false);
@@ -250,6 +250,8 @@ public partial class D7896ViewModel : ObservableObject
// 获取采集数据
double[] ustd = await _th1963Ustd.FetchBatchAsync();
double[] upt = await _fiveHalfUpt.FetchBatchAsync();
StandardResistorVoltage = ustd.Average();
// 构建时间数组假设采样时间正好1秒采样点数 = ustd.Length
double[] timeArray = new double[ustd.Length];