|
@@ -112,6 +112,7 @@ namespace Venus_RT.Devices
|
|
|
private readonly RfPowerBase _Generator;//srf=>AdTecGenerator
|
|
|
private readonly RfPowerBase _GeneratorBias;//brf=>CometRF
|
|
|
private readonly RfMatchBase _Match;
|
|
|
+ private readonly RfMatchBase _BiasMatch;
|
|
|
|
|
|
private readonly IoSignalTower _SignalTower;
|
|
|
|
|
@@ -378,11 +379,17 @@ namespace Venus_RT.Devices
|
|
|
}
|
|
|
|
|
|
// Ethernet Comet Generator Bias
|
|
|
- if (SC.GetValue<bool>($"{mod}.BiasRf.EnableBiasRF") &&
|
|
|
- SC.GetValue<int>($"{mod}.BiasRf.CommunicationType") == (int)CommunicationType.Ethernet &&
|
|
|
- SC.GetValue<int>($"{mod}.BiasRf.MFG") == (int)GeneratorMFG.Comet)
|
|
|
+ if (SC.GetValue<bool>($"{mod}.BiasRf.EnableBiasRF"))
|
|
|
{
|
|
|
- _GeneratorBias = DEVICE.GetDevice<CometRF>($"{Module}.{VenusDevice.BiasRf}");
|
|
|
+ if (SC.GetValue<int>($"{mod}.BiasRf.CommunicationType") == (int)CommunicationType.Ethernet &&
|
|
|
+ SC.GetValue<int>($"{mod}.BiasRf.MFG") == (int)GeneratorMFG.Comet)
|
|
|
+ {
|
|
|
+ _GeneratorBias = DEVICE.GetDevice<CometRF>($"{Module}.{VenusDevice.BiasRf}");
|
|
|
+ }
|
|
|
+ else if (SC.GetValue<int>($"{mod}.BiasRf.MFG") == (int)GeneratorMFG.AdTec)
|
|
|
+ {
|
|
|
+ _GeneratorBias = DEVICE.GetDevice<AdTecGenerator>($"{Module}.{VenusDevice.BiasRf}");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// RS232 AdTec match
|
|
@@ -392,6 +399,14 @@ namespace Venus_RT.Devices
|
|
|
_Match = DEVICE.GetDevice<AdTecMatch>($"{Module}.{VenusDevice.Match}");
|
|
|
}
|
|
|
|
|
|
+ // Bias Match
|
|
|
+ if (SC.GetValue<bool>($"{mod}.BiasMatch.EnableBiasMatch") &&
|
|
|
+ SC.GetValue<int>($"{mod}.BiasMatch.CommunicationType") == (int)CommunicationType.RS232 &&
|
|
|
+ SC.GetValue<int>($"{mod}.BiasMatch.MFG") == (int)MatchMFG.AdTec)
|
|
|
+ {
|
|
|
+ _BiasMatch = DEVICE.GetDevice<AdTecMatch>($"{Module}.{VenusDevice.BiasMatch}");
|
|
|
+ }
|
|
|
+
|
|
|
_epdClient = DEVICE.GetDevice<EPDClient>($"{Module}.{VenusDevice.EndPoint}");
|
|
|
|
|
|
DATA.Subscribe($"{Name}.ForelinePressure", () => ForelinePressure);
|
|
@@ -845,9 +860,9 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
public bool SetBiasMatchPosition(float c1, float c2)
|
|
|
{
|
|
|
- if (_GeneratorBias == null) return false;
|
|
|
+ if (_BiasMatch == null) return false;
|
|
|
string reason = string.Empty;
|
|
|
- _GeneratorBias.SetMatchPosition(c1, c2, out reason);
|
|
|
+ _BiasMatch.SetMatchPosition(c1, c2, out reason);
|
|
|
return true;
|
|
|
}
|
|
|
|