iPerl flow direction detection and display, ver. 2.18.1082
This commit is contained in:
@@ -22,6 +22,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
public float CalibTarget; /// Target error after calibration in [%]
|
||||
public int FactorLimitLo; /// Lower limit for the calibration factor
|
||||
public int FactorLimitHi; /// Upper limit for the calibration factor
|
||||
public FlowDir FlowDir; /// Initial iPerl flow direction (R_L or L_R)
|
||||
public LogType LogType;
|
||||
#if ORACLE_DB
|
||||
public int WMType_ID; /// Required for Oracle DB: ID_WZTyp in table VT_PRUEFPUNKT_SOLL_SD
|
||||
@@ -35,6 +36,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
CalibTarget = 0;
|
||||
FactorLimitLo = 1000;
|
||||
FactorLimitHi = 8000;
|
||||
FlowDir = FlowDir.R_L;
|
||||
LogType = LogType.Just_Q1Q2Q3;
|
||||
#if ORACLE_DB
|
||||
WMType_ID = 2; /// Value for iPerl DN15
|
||||
@@ -48,6 +50,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
"Calib. target [%]",
|
||||
"Calib. factor Lo",
|
||||
"Calib. factor Hi",
|
||||
"Flow direction",
|
||||
"Log type",
|
||||
#if ORACLE_DB
|
||||
"WMType ID",
|
||||
@@ -66,6 +69,12 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
return retVal;
|
||||
}
|
||||
else if (i == 4)
|
||||
{
|
||||
IList<string> retVal = new List<string>();
|
||||
for (FlowDir fd = 0; fd < FlowDir.Count; fd++) retVal.Add(fd.ToString());
|
||||
return retVal;
|
||||
}
|
||||
else if (i == 5)
|
||||
{
|
||||
IList<string> retVal = new List<string>();
|
||||
for (LogType lt = 0; lt < LogType.Count; lt++) retVal.Add(lt.ToString());
|
||||
@@ -82,10 +91,11 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
case 1: return CalibTarget.ToString();
|
||||
case 2: return FactorLimitLo.ToString();
|
||||
case 3: return FactorLimitHi.ToString();
|
||||
case 4: return LogType.ToString();
|
||||
case 4: return FlowDir.ToString();
|
||||
case 5: return LogType.ToString();
|
||||
#if ORACLE_DB
|
||||
case 5: return WMType_ID.ToString();
|
||||
case 6: return WMType_Rev.ToString();
|
||||
case 6: return WMType_ID.ToString();
|
||||
case 7: return WMType_Rev.ToString();
|
||||
#endif
|
||||
default: return string.Empty;
|
||||
}
|
||||
@@ -105,14 +115,20 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
case 2: FactorLimitLo = int.Parse(strValue); return CfgUpdateFlags.None;
|
||||
case 3: FactorLimitHi = int.Parse(strValue); return CfgUpdateFlags.None;
|
||||
case 4:
|
||||
for (FlowDir fd = 0; fd < FlowDir.Count; fd++)
|
||||
{
|
||||
if (fd.ToString().Equals(strValue)) { FlowDir = fd; return CfgUpdateFlags.None; }
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
for (LogType lt = 0; lt < LogType.Count; lt++)
|
||||
{
|
||||
if (lt.ToString().Equals(strValue)) { LogType = lt; return CfgUpdateFlags.None; }
|
||||
}
|
||||
break;
|
||||
#if ORACLE_DB
|
||||
case 5: WMType_ID = int.Parse(strValue); return CfgUpdateFlags.None;
|
||||
case 6: WMType_Rev = int.Parse(strValue); return CfgUpdateFlags.None;
|
||||
case 6: WMType_ID = int.Parse(strValue); return CfgUpdateFlags.None;
|
||||
case 7: WMType_Rev = int.Parse(strValue); return CfgUpdateFlags.None;
|
||||
#endif
|
||||
default: return CfgUpdateFlags.None;
|
||||
}
|
||||
@@ -140,12 +156,14 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
if (int.TryParse(strValue, out iDummy) && iDummy >= 1000 && iDummy <= 8000) return true;
|
||||
break;
|
||||
case 4:
|
||||
for (FlowDir fd = 0; fd < FlowDir.Count; fd++) if (fd.ToString().Equals(strValue)) return true;
|
||||
break;
|
||||
case 5:
|
||||
for (LogType lt = 0; lt < LogType.Count; lt++) if (lt.ToString().Equals(strValue)) return true;
|
||||
break;
|
||||
|
||||
#if ORACLE_DB
|
||||
case 5: /// WMType_ID
|
||||
case 6: /// WMType_Rev
|
||||
case 6: /// WMType_ID
|
||||
case 7: /// WMType_Rev
|
||||
if (int.TryParse(strValue, out iDummy)) return true;
|
||||
break;
|
||||
#endif
|
||||
@@ -164,6 +182,7 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication.iPerlHead
|
||||
prms.CalibTarget = this.CalibTarget;
|
||||
prms.FactorLimitLo = this.FactorLimitLo;
|
||||
prms.FactorLimitHi = this.FactorLimitHi;
|
||||
prms.FlowDir = this.FlowDir;
|
||||
prms.LogType = this.LogType;
|
||||
#if ORACLE_DB
|
||||
prms.WMType_ID = this.WMType_ID;
|
||||
|
||||
Reference in New Issue
Block a user