|
@@ -106,6 +106,8 @@ namespace JetVirgoPM.Devices
|
|
|
private readonly RfPowerBase _GeneratorBias2;
|
|
|
private readonly RfMatchBase _Match1;
|
|
|
private readonly RfMatchBase _Match2;
|
|
|
+ private readonly RfMatchBase _BiasMatch1;
|
|
|
+ private readonly RfMatchBase _BiasMatch2;
|
|
|
private readonly PumpBase _MainPump;
|
|
|
private readonly ChillerBase _Chiller1;
|
|
|
private readonly ChillerBase _Chiller2;
|
|
@@ -515,6 +517,40 @@ namespace JetVirgoPM.Devices
|
|
|
_GeneratorBias2 = DEVICE.GetDevice<CometRF>($"{Module}.{VirgoDevice.BiasRf2}");
|
|
|
}
|
|
|
|
|
|
+ //=========================================================================================
|
|
|
+ //srf1 match revtec
|
|
|
+ if (SC.GetValue<bool>($"{mod}.match1.EnableMatch") &&
|
|
|
+ SC.GetValue<int>($"{mod}.match1.CommunicationType") == (int)CommunicationType.Ethernet &&
|
|
|
+ SC.GetValue<int>($"{mod}.match1.MFG") == (int)MatchMFG.RevTec)
|
|
|
+ {
|
|
|
+ _Match1 = DEVICE.GetDevice<RevtechMatch>($"{Module}.{VirgoDevice.Match1}");
|
|
|
+ }
|
|
|
+
|
|
|
+ //srf2 match revtec
|
|
|
+ if (SC.GetValue<bool>($"{mod}.match2.EnableMatch") &&
|
|
|
+ SC.GetValue<int>($"{mod}.match2.CommunicationType") == (int)CommunicationType.Ethernet &&
|
|
|
+ SC.GetValue<int>($"{mod}.match2.MFG") == (int)MatchMFG.RevTec)
|
|
|
+ {
|
|
|
+ _Match2 = DEVICE.GetDevice<RevtechMatch>($"{Module}.{VirgoDevice.Match2}");
|
|
|
+ }
|
|
|
+
|
|
|
+ //brf1 match revtec
|
|
|
+ if (SC.GetValue<bool>($"{mod}.BiasRf1Match.EnableMatch") &&
|
|
|
+ SC.GetValue<int>($"{mod}.BiasRf1Match.CommunicationType") == (int)CommunicationType.Ethernet &&
|
|
|
+ SC.GetValue<int>($"{mod}.BiasRf1Match.MFG") == (int)MatchMFG.RevTec)
|
|
|
+ {
|
|
|
+ _BiasMatch1 = DEVICE.GetDevice<RevtechMatch>($"{Module}.BiasRf1Match");
|
|
|
+ }
|
|
|
+
|
|
|
+ //brf2 match revtec
|
|
|
+ if (SC.GetValue<bool>($"{mod}.BiasRf2Match.EnableMatch") &&
|
|
|
+ SC.GetValue<int>($"{mod}.BiasRf2Match.CommunicationType") == (int)CommunicationType.Ethernet &&
|
|
|
+ SC.GetValue<int>($"{mod}.BiasRf2Match.MFG") == (int)MatchMFG.RevTec)
|
|
|
+ {
|
|
|
+ _BiasMatch2 = DEVICE.GetDevice<RevtechMatch>($"{Module}.BiasRf2Match");
|
|
|
+ }
|
|
|
+ //=========================================================================================
|
|
|
+
|
|
|
// RS232 AdTec match
|
|
|
if (SC.GetValue<int>($"{mod}.match1.CommunicationType") == (int)CommunicationType.RS232 &&
|
|
|
SC.GetValue<int>($"{mod}.match1.MFG") == (int)MatchMFG.AdTec)
|
|
@@ -1325,6 +1361,12 @@ namespace JetVirgoPM.Devices
|
|
|
|
|
|
public bool GeneratorBias1SetMatchMode(bool val)
|
|
|
{
|
|
|
+ if (_BiasMatch1 != null)
|
|
|
+ {
|
|
|
+ _BiasMatch1.SetMatchMode(val ? EnumRfMatchTuneMode.Auto.ToString() : EnumRfMatchTuneMode.Manual.ToString(), out _);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
if (_GeneratorBias1 == null) return false;
|
|
|
string reason = string.Empty;
|
|
|
_GeneratorBias1.SetMatchingAutoMode(val, out reason);
|
|
@@ -1333,6 +1375,12 @@ namespace JetVirgoPM.Devices
|
|
|
|
|
|
public bool GeneratorBias2SetMatchMode(bool val)
|
|
|
{
|
|
|
+ if (_BiasMatch2 != null)
|
|
|
+ {
|
|
|
+ _BiasMatch2.SetMatchMode(val ? EnumRfMatchTuneMode.Auto.ToString(): EnumRfMatchTuneMode.Manual.ToString(), out _);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
if (_GeneratorBias2 == null) return false;
|
|
|
string reason = string.Empty;
|
|
|
_GeneratorBias2.SetMatchingAutoMode(val, out reason);
|
|
@@ -1357,6 +1405,12 @@ namespace JetVirgoPM.Devices
|
|
|
|
|
|
public bool SetBias1MatchPosition(float c1, float c2)
|
|
|
{
|
|
|
+ if (_BiasMatch1 != null)
|
|
|
+ {
|
|
|
+ _BiasMatch1.SetMatchPosition(c1,c2,out _);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
if (_GeneratorBias1 == null) return false;
|
|
|
string reason = string.Empty;
|
|
|
_GeneratorBias1.SetMatchPosition(c1, c2, out reason);
|
|
@@ -1365,6 +1419,12 @@ namespace JetVirgoPM.Devices
|
|
|
|
|
|
public bool SetBias2MatchPosition(float c1, float c2)
|
|
|
{
|
|
|
+ if (_BiasMatch2 != null)
|
|
|
+ {
|
|
|
+ _BiasMatch2.SetMatchPosition(c1, c2, out _);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
if (_GeneratorBias2 == null) return false;
|
|
|
string reason = string.Empty;
|
|
|
_GeneratorBias2.SetMatchPosition(c1, c2, out reason);
|