Compare commits
2 Commits
b8d1337ae3
...
2097d70958
| Author | SHA1 | Date | |
|---|---|---|---|
| 2097d70958 | |||
| fffa4ea318 |
@@ -122,7 +122,7 @@
|
||||
<ComboBoxItem Content="6.4mm" />
|
||||
</ComboBox>
|
||||
<Label Grid.Row="1" Grid.Column="0">初始电阻 R₀ (Ω):</Label>
|
||||
<TextBox IsEnabled="False" Grid.Row="1" Grid.Column="1" x:Name="txtProbeR0" Text="34.7"/>
|
||||
<TextBox IsEnabled="False" Grid.Row="1" Grid.Column="1" x:Name="txtProbeR0" Text="12.2"/>
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0">温度系数 α (1/K):</Label>
|
||||
<TextBox IsEnabled="False" Grid.Row="2" Grid.Column="1" x:Name="txtProbeAlpha" Text="0.008"/>
|
||||
@@ -150,7 +150,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0">串联电阻 Rₛ (Ω):</Label>
|
||||
<TextBox Grid.Row="0" Grid.Column="1" x:Name="txtBridgeRs" IsReadOnly="true" IsEnabled="False" Text="34.7"/>
|
||||
<TextBox Grid.Row="0" Grid.Column="1" x:Name="txtBridgeRs" IsReadOnly="true" IsEnabled="False" Text="12.2"/>
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0">引线电阻 Rₗ (Ω):</Label>
|
||||
<TextBox Grid.Row="1" Grid.Column="1" x:Name="txtBridgeRL" IsReadOnly="true" IsEnabled="False" Text="0.0267"/>
|
||||
|
||||
@@ -52,14 +52,14 @@ namespace ConductivityApp
|
||||
//private const double DefaultBridgeRL = 0.05; // Ω
|
||||
|
||||
// 探头物理参数(供应商数据 - 探头2)
|
||||
private double DefaultProbeR0 = 34.7; // Ω,初始电阻
|
||||
private double DefaultProbeR0 = 12.2; // Ω,初始电阻
|
||||
private double DefaultProbeAlpha = 0.008; // 1/K,温度系数
|
||||
private double DefaultProbeRadiusMM = 14; // mm,探头半径
|
||||
|
||||
private int DefaultProbeCoilCount = 27; // 环数
|
||||
|
||||
// 电桥电路参数
|
||||
private double DefaultBridgeRs = 34.7; // Ω,初始探头电阻(=R0)
|
||||
private double DefaultBridgeRs = 12.2; // Ω,初始探头电阻(=R0)
|
||||
private double DefaultBridgeRL = 0.0267; // Ω,引线电阻(26.7mΩ)
|
||||
private static double r = 0;
|
||||
private static double a = 0;
|
||||
@@ -1852,6 +1852,7 @@ namespace ConductivityApp
|
||||
//}
|
||||
_plc?.Write("M1.0", true); // 夹紧
|
||||
Console.WriteLine("执行夹紧操作");
|
||||
_plc.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -1869,6 +1870,7 @@ namespace ConductivityApp
|
||||
//}
|
||||
_plc?.Write("M1.0", false); // 松开
|
||||
Console.WriteLine("执行松开操作");
|
||||
_plc.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -1951,16 +1953,16 @@ namespace ConductivityApp
|
||||
{
|
||||
if (txtProbeRadius == null)
|
||||
return;
|
||||
txtProbeR0.Text = "34.7";
|
||||
txtProbeR0.Text = "12.2";
|
||||
txtProbeRadius.Text = "14";
|
||||
txtProbeCoils.Text = "27";
|
||||
txtBridgeRs.Text = "34.7";
|
||||
txtBridgeRs.Text = "12.2";
|
||||
txtBridgeRL.Text = "0.0267";
|
||||
DefaultProbeR0 = 34.7; // Ω,初始电阻
|
||||
DefaultProbeR0 = 12.2; // Ω,初始电阻
|
||||
DefaultProbeRadiusMM = 14; // mm,探头半径
|
||||
DefaultProbeCoilCount = 27; // 环数
|
||||
// 电桥电路参数
|
||||
DefaultBridgeRs = 34.7; // Ω,初始探头电阻(=R0)
|
||||
DefaultBridgeRs = 12.2; // Ω,初始探头电阻(=R0)
|
||||
DefaultBridgeRL = 0.0267; // Ω,引线电阻(26.7mΩ)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user