@@ -94,7 +94,7 @@ namespace ASTM_D7896_Tester.Services
|
||||
await SendCommandAsync($"VOLT:DC:RANG {DefaultVoltageRange}");
|
||||
|
||||
// 3. 设置积分时间 0.02PLC(最快速度)
|
||||
await SendCommandAsync("VOLT:DC:NPLC 0.02");
|
||||
await SendCommandAsync("VOLT:DC:NPLC 10");
|
||||
|
||||
// 4. 关闭自动归零(提高速度)
|
||||
await SendCommandAsync("VOLT:DC:ZERO:AUTO OFF");
|
||||
|
||||
@@ -88,7 +88,7 @@ public partial class D7896ViewModel : ObservableObject
|
||||
|
||||
|
||||
[ObservableProperty] private double _sampleDensity = 1000.0; // 新增,密度默认值1000 kg/m³(水)
|
||||
int samples = 400; // 1秒 * 1000点/秒
|
||||
int samples = 100; // 1秒 * 1000点/秒
|
||||
double heatingDuration = 0.8; // 加热时间 0.8 秒(需与您的加热脉冲宽度一致)
|
||||
double totalDuration = 1.6; // 总采样时间(加热 + 冷却)
|
||||
public D7896ViewModel()
|
||||
@@ -321,7 +321,7 @@ public partial class D7896ViewModel : ObservableObject
|
||||
double[] ustd = await _th1963Ustd.FetchBatchAsync();
|
||||
double[] upt = await _th1953Ustd.FetchBatchAsync();
|
||||
|
||||
for (int j = 0; j < ustd.Length; j++)
|
||||
for (int j = 0; j < 20 && j < ustd.Length; j++)
|
||||
{
|
||||
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 wireRadius = _config.TestParameters.PlatinumWireDiameter / 2.0; // 30 微米 (0.03mm)
|
||||
double wireRadius = 0.00003; // 30 微米 (0.03mm)
|
||||
|
||||
double alpha = (wireRadius * wireRadius / 4.0) * Math.Exp(eulerGamma) * Math.Exp(intercept / slope);
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
"TestParameters": {
|
||||
"MeasurementCount": 10,
|
||||
"IntervalSeconds": 30,
|
||||
"PlatinumWireLength": 0.06, //铂丝长度(单位:米)
|
||||
"PlatinumWireDiameter": 0.00006,//铂丝直径(单位:米)
|
||||
"PlatinumWireLength": 0.056, //铂丝长度(单位:米)
|
||||
"PlatinumWireDiameter": 0.00006,
|
||||
"ReportOutputPath": "Reports\\",
|
||||
"DefaultSampleVolume": 40.0,
|
||||
"DefaultPressure": 0.0,
|
||||
|
||||
Reference in New Issue
Block a user