This commit is contained in:
xyy
2026-05-28 09:55:56 +08:00
parent e826fab6fc
commit adaffdfa74
3 changed files with 6 additions and 6 deletions

View File

@@ -94,7 +94,7 @@ namespace ASTM_D7896_Tester.Services
await SendCommandAsync($"VOLT:DC:RANG {DefaultVoltageRange}"); await SendCommandAsync($"VOLT:DC:RANG {DefaultVoltageRange}");
// 3. 设置积分时间 0.02PLC(最快速度) // 3. 设置积分时间 0.02PLC(最快速度)
await SendCommandAsync("VOLT:DC:NPLC 10"); await SendCommandAsync("VOLT:DC:NPLC 0.02");
// 4. 关闭自动归零(提高速度) // 4. 关闭自动归零(提高速度)
await SendCommandAsync("VOLT:DC:ZERO:AUTO OFF"); await SendCommandAsync("VOLT:DC:ZERO:AUTO OFF");

View File

@@ -88,7 +88,7 @@ public partial class D7896ViewModel : ObservableObject
[ObservableProperty] private double _sampleDensity = 1000.0; // 新增密度默认值1000 kg/m³ [ObservableProperty] private double _sampleDensity = 1000.0; // 新增密度默认值1000 kg/m³
int samples = 100; // 1秒 * 1000点/秒 int samples = 400; // 1秒 * 1000点/秒
double heatingDuration = 0.8; // 加热时间 0.8 秒(需与您的加热脉冲宽度一致) double heatingDuration = 0.8; // 加热时间 0.8 秒(需与您的加热脉冲宽度一致)
double totalDuration = 1.6; // 总采样时间(加热 + 冷却) double totalDuration = 1.6; // 总采样时间(加热 + 冷却)
public D7896ViewModel() public D7896ViewModel()
@@ -321,7 +321,7 @@ public partial class D7896ViewModel : ObservableObject
double[] ustd = await _th1963Ustd.FetchBatchAsync(); double[] ustd = await _th1963Ustd.FetchBatchAsync();
double[] upt = await _th1953Ustd.FetchBatchAsync(); double[] upt = await _th1953Ustd.FetchBatchAsync();
for (int j = 0; j < 20 && j < ustd.Length; j++) for (int j = 0; j < ustd.Length; j++)
{ {
Logger.Log($"第{j}点: U_std={ustd[j]:F6} V, U_pt={upt[j]:F6} V"); Logger.Log($"第{j}点: U_std={ustd[j]:F6} V, U_pt={upt[j]:F6} V");
} }
@@ -473,7 +473,7 @@ public partial class D7896ViewModel : ObservableObject
// 计算热扩散率 α // 计算热扩散率 α
double eulerGamma = 0.5772156649; double eulerGamma = 0.5772156649;
double wireRadius = 0.00003; // 30 微米 (0.03mm) double wireRadius = _config.TestParameters.PlatinumWireDiameter / 2.0; // 30 微米 (0.03mm)
double alpha = (wireRadius * wireRadius / 4.0) * Math.Exp(eulerGamma) * Math.Exp(intercept / slope); double alpha = (wireRadius * wireRadius / 4.0) * Math.Exp(eulerGamma) * Math.Exp(intercept / slope);

View File

@@ -25,8 +25,8 @@
"TestParameters": { "TestParameters": {
"MeasurementCount": 10, "MeasurementCount": 10,
"IntervalSeconds": 30, "IntervalSeconds": 30,
"PlatinumWireLength": 0.056, //铂丝长度(单位:米) "PlatinumWireLength": 0.06, //铂丝长度(单位:米)
"PlatinumWireDiameter": 0.00006, "PlatinumWireDiameter": 0.00006,//铂丝直径(单位:米)
"ReportOutputPath": "Reports\\", "ReportOutputPath": "Reports\\",
"DefaultSampleVolume": 40.0, "DefaultSampleVolume": 40.0,
"DefaultPressure": 0.0, "DefaultPressure": 0.0,