protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { outputParameters = new TestModeEquipmentParameters[2]; outputParameters[0].FiledName = "DMIRXPOWCURVEMAXERRPOINT(DBM)"; ErrMaxPoint = Algorithm.ISNaNorIfinity(ErrMaxPoint); outputParameters[0].DefaultValue = Math.Round(ErrMaxPoint, 4).ToString().Trim(); outputParameters[1].FiledName = "DMIRXPOWCURVEMAXERR(DBM)"; MaxErr = Algorithm.ISNaNorIfinity(MaxErr); outputParameters[1].DefaultValue = Math.Round(MaxErr, 4).ToString().Trim(); return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { outputParameters = new TestModeEquipmentParameters[2]; outputParameters[0].FiledName = "Overload(dbm)"; OverloadPoint = Algorithm.ISNaNorIfinity(OverloadPoint); outputParameters[0].DefaultValue = Math.Round(OverloadPoint, 4).ToString().Trim(); outputParameters[1].FiledName = "OverloadOMA(dbm)"; OverloadOMA = Algorithm.CalculateOMA(OverloadPoint, Convert.ToDouble(OSERValueArray[GlobalParameters.CurrentChannel - 1])); outputParameters[1].DefaultValue = Math.Round(OverloadOMA, 4).ToString().Trim(); return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] infoList) { try { outputParameters = new TestModeEquipmentParameters[testOutputData.Keys.Count]; int i = 0; foreach (string key in testOutputData.Keys) { outputParameters[i].FiledName = key; double temp = Algorithm.ISNaNorIfinity(testOutputData[key]); outputParameters[i++].DefaultValue = Math.Round(temp, 4).ToString().Trim(); } return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { outputParameters = new TestModeEquipmentParameters[1]; outputParameters[0].FiledName = "ICC(MA)"; icc = Algorithm.ISNaNorIfinity(icc); outputParameters[0].DefaultValue = Math.Round(icc, 4).ToString().Trim(); for (int i = 0; i < outputParameters.Length; i++) { Log.SaveLogToTxt(outputParameters[i].FiledName + " : " + outputParameters[i].DefaultValue); } return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { lock (tempAtten) { try { outputParameters = new TestModeEquipmentParameters[2]; outputParameters[0].FiledName = "CSEN_Intensify(DBM)"; sensitivityPoint = Algorithm.ISNaNorIfinity(sensitivityPoint); if (testBerStruct.IsBerQuickTest == true) { outputParameters[0].DefaultValue = sensitivityPoint.ToString().Trim(); } else { outputParameters[0].DefaultValue = Math.Round(sensitivityPoint, 4).ToString().Trim(); } outputParameters[1].FiledName = "CSENOMA_Intensify(DBM)"; sensOMA = Algorithm.CalculateOMA(sensitivityPoint, Convert.ToDouble(OSERValueArray[GlobalParameters.CurrentChannel - 1])); outputParameters[1].DefaultValue = Math.Round(sensOMA, 4).ToString().Trim(); return(true); } catch (System.Exception ex) { throw ex; } } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { outputParameters = new TestModeEquipmentParameters[1]; outputParameters[0].FiledName = "TxReturnLosTolerance(dbm))"; TxReturnLosTolerance = Algorithm.ISNaNorIfinity(TxReturnLosTolerance); outputParameters[0].DefaultValue = TxReturnLosTolerance.ToString().Trim(); return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { outputParameters = new TestModeEquipmentParameters[2]; outputParameters[0].FiledName = "DMIVCC(V)"; vccDmi = Algorithm.ISNaNorIfinity(vccDmi); outputParameters[0].DefaultValue = Math.Round(vccDmi, 4).ToString().Trim(); outputParameters[1].FiledName = "DMIVCCERR(V)"; vccDmiErr = Algorithm.ISNaNorIfinity(vccDmiErr); outputParameters[1].DefaultValue = Math.Round(vccDmiErr, 4).ToString().Trim(); for (int i = 0; i < outputParameters.Length; i++) { Log.SaveLogToTxt(outputParameters[i].FiledName + " : " + outputParameters[i].DefaultValue); } return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } //if (InformationList.Length == 0)//InformationList is null //{ // return false; //} //else// InformationList is not null //{ // // int index = -1; // for (byte i = 0; i < InformationList.Length; i++) // { // } // return true; //} }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { lock (tempScope) { try { outputParameters = new TestModeEquipmentParameters[4]; outputParameters[0].FiledName = "DMITXPOWER(DBM)"; txPowerDmi = Algorithm.ISNaNorIfinity(txPowerDmi); outputParameters[0].DefaultValue = Math.Round(txPowerDmi, 4).ToString().Trim(); outputParameters[1].FiledName = "DCATXPOWER(DBM)"; txDCAPowerDmi = Algorithm.ISNaNorIfinity(txDCAPowerDmi); outputParameters[1].DefaultValue = Math.Round(txDCAPowerDmi, 4).ToString().Trim(); outputParameters[2].FiledName = "DMITXPOWERERR(Dbm)"; txDmiPowerErr = Algorithm.ISNaNorIfinity(txDmiPowerErr); outputParameters[2].DefaultValue = Math.Round(txDmiPowerErr, 4).ToString().Trim(); //--------------- outputParameters[3].FiledName = "TxDisablePower(Dbm)"; TxDisablePower = Algorithm.ISNaNorIfinity(TxDisablePower); outputParameters[3].DefaultValue = Math.Round(TxDisablePower, 4).ToString().Trim(); // TxDisablePower //-------------- for (int i = 0; i < outputParameters.Length; i++) { Log.SaveLogToTxt(outputParameters[i].FiledName + " : " + outputParameters[i].DefaultValue); } return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { lock (tempAtten) { try { outputParameters = new TestModeEquipmentParameters[5]; outputParameters[0].FiledName = "LOSA(DBM)"; losA = Algorithm.ISNaNorIfinity(losA); outputParameters[0].DefaultValue = Math.Round(losA, 4).ToString().Trim(); outputParameters[1].FiledName = "LOSD(DBM)"; losD = Algorithm.ISNaNorIfinity(losD); outputParameters[1].DefaultValue = Math.Round(losD, 4).ToString().Trim(); outputParameters[2].FiledName = "LOSH(DBM)"; losH = Algorithm.ISNaNorIfinity(losH); outputParameters[2].DefaultValue = Math.Round(losH, 4).ToString().Trim(); outputParameters[3].FiledName = "LOSA_OMA(DBM)"; losAOma = Algorithm.CalculateOMA(losA, Convert.ToDouble(OSERValueArray[GlobalParameters.CurrentChannel - 1])); outputParameters[3].DefaultValue = Math.Round(losAOma, 4).ToString().Trim(); outputParameters[4].FiledName = "LOSD_OMA(DBM)"; losDOma = Algorithm.CalculateOMA(losD, Convert.ToDouble(OSERValueArray[GlobalParameters.CurrentChannel - 1])); outputParameters[4].DefaultValue = Math.Round(losDOma, 4).ToString().Trim(); for (int i = 0; i < outputParameters.Length; i++) { Log.SaveLogToTxt(outputParameters[i].FiledName + " : " + outputParameters[i].DefaultValue); } return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] infoList) { try { outputParameters = new TestModeEquipmentParameters[5]; outputParameters[0].FiledName = "EYEHeight"; eyeHeight = Algorithm.ISNaNorIfinity(eyeHeight); outputParameters[0].DefaultValue = Math.Round(eyeHeight, 4).ToString().Trim(); outputParameters[1].FiledName = "AMP_5"; amp_5 = Algorithm.ISNaNorIfinity(amp_5); outputParameters[1].DefaultValue = Math.Round(amp_5, 4).ToString().Trim(); outputParameters[2].FiledName = "VEC"; vec = Algorithm.ISNaNorIfinity(vec); outputParameters[2].DefaultValue = Math.Round(vec, 4).ToString().Trim(); outputParameters[3].FiledName = "VCMI_AC(mV)"; vcmi[0] = Algorithm.ISNaNorIfinity(vcmi[0]); outputParameters[3].DefaultValue = Math.Round(vcmi[0], 4).ToString().Trim(); outputParameters[4].FiledName = "VCMI_DC(mV)"; vcmi[1] = Algorithm.ISNaNorIfinity(vcmi[1]); outputParameters[4].DefaultValue = Math.Round(vcmi[1], 4).ToString().Trim(); return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { outputParameters = new TestModeEquipmentParameters[2]; outputParameters[0].FiledName = "DmiTxPowCurveLT"; txpProportionLessCoef = Algorithm.ISNaNorIfinity(txpProportionLessCoef); outputParameters[0].DefaultValue = Math.Round(txpProportionLessCoef, 6).ToString().Trim(); outputParameters[1].FiledName = "DmiTxPowCurveHT"; txpProportionGreatCoef = Algorithm.ISNaNorIfinity(txpProportionGreatCoef); outputParameters[1].DefaultValue = Math.Round(txpProportionGreatCoef, 6).ToString().Trim(); return(true); } catch (System.Exception ex) { throw ex; } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { outputParameters = new TestModeEquipmentParameters[9]; outputParameters[0].FiledName = "EETXAMP(MV)"; amp = Algorithm.ISNaNorIfinity(amp); outputParameters[0].DefaultValue = Math.Round(amp, 4).ToString().Trim(); outputParameters[1].FiledName = "EEEYEHIGHT(MV)"; eyeHight = Algorithm.ISNaNorIfinity(eyeHight); outputParameters[1].DefaultValue = Math.Round(eyeHight, 4).ToString().Trim(); outputParameters[2].FiledName = "EECROSSING(%)"; crossing = Algorithm.ISNaNorIfinity(crossing); outputParameters[2].DefaultValue = Math.Round(crossing, 4).ToString().Trim(); outputParameters[3].FiledName = "EEMASKMARGIN(%)"; marginVaulue = Algorithm.ISNaNorIfinity(marginVaulue); outputParameters[3].DefaultValue = Math.Round(marginVaulue, 4).ToString().Trim(); outputParameters[4].FiledName = "EEJITTERRMS(PS)"; jitterRMS = Algorithm.ISNaNorIfinity(jitterRMS); outputParameters[4].DefaultValue = Math.Round(jitterRMS, 4).ToString().Trim(); outputParameters[5].FiledName = "EEJITTERPP(PS)"; jitterPP = Algorithm.ISNaNorIfinity(jitterPP); outputParameters[5].DefaultValue = Math.Round(jitterPP, 4).ToString().Trim(); outputParameters[6].FiledName = "EERISETIME(PS)"; riseTime = Algorithm.ISNaNorIfinity(riseTime); outputParameters[6].DefaultValue = Math.Round(riseTime, 4).ToString().Trim(); outputParameters[7].FiledName = "EEFALLTIME(PS)"; fallTime = Algorithm.ISNaNorIfinity(fallTime); outputParameters[7].DefaultValue = Math.Round(fallTime, 4).ToString().Trim(); outputParameters[8].FiledName = "EEEYEWIDTH(PS)"; eyeWidth = Algorithm.ISNaNorIfinity(eyeWidth); outputParameters[8].DefaultValue = Math.Round(eyeWidth, 4).ToString().Trim(); return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } //if (InformationList.Length == 0)//InformationList is null //{ // return false; //} //else// InformationList is not null //{ // int index = -1; // for (byte i = 0; i < InformationList.Length; i++) // { // } // return true; //} }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { lock (tempScope) { try { outputParameters = new TestModeEquipmentParameters[12]; outputParameters[0].FiledName = "AP(DBM)"; apDBM = Algorithm.ISNaNorIfinity(apDBM); outputParameters[0].DefaultValue = Math.Round(apDBM, 4).ToString().Trim(); outputParameters[1].FiledName = "ER(DB)"; er = Algorithm.ISNaNorIfinity(er); outputParameters[1].DefaultValue = Math.Round(er, 4).ToString().Trim(); outputParameters[2].FiledName = "CROSSING(%)"; crossing = Algorithm.ISNaNorIfinity(crossing); outputParameters[2].DefaultValue = Math.Round(crossing, 4).ToString().Trim(); outputParameters[3].FiledName = "MASKMARGIN(%)"; marginVaulue = Algorithm.ISNaNorIfinity(marginVaulue); outputParameters[3].DefaultValue = Math.Round(marginVaulue, 4).ToString().Trim(); outputParameters[4].FiledName = "JITTERRMS(PS)"; jitterRMS = Algorithm.ISNaNorIfinity(jitterRMS); outputParameters[4].DefaultValue = Math.Round(jitterRMS, 4).ToString().Trim(); outputParameters[5].FiledName = "JITTERPP(PS)"; jitterPP = Algorithm.ISNaNorIfinity(jitterPP); outputParameters[5].DefaultValue = Math.Round(jitterPP, 4).ToString().Trim(); outputParameters[6].FiledName = "RISETIME(PS)"; riseTime = Algorithm.ISNaNorIfinity(riseTime); outputParameters[6].DefaultValue = Math.Round(riseTime, 4).ToString().Trim(); outputParameters[7].FiledName = "FALLTIME(PS)"; fallTime = Algorithm.ISNaNorIfinity(fallTime); outputParameters[7].DefaultValue = Math.Round(fallTime, 4).ToString().Trim(); outputParameters[8].FiledName = "TXOMA(DBM)"; OEOMA = Algorithm.ISNaNorIfinity(OEOMADBM); outputParameters[8].DefaultValue = Math.Round(OEOMADBM, 4).ToString().Trim(); outputParameters[9].FiledName = "EYEHEIGHT(MW)"; //EyeHeight EyeHeight = Algorithm.ISNaNorIfinity(EyeHeight); outputParameters[9].DefaultValue = Math.Round(EyeHeight, 4).ToString().Trim(); outputParameters[10].FiledName = "BitRate(GB/S)"; //EyeHeight bitRate = Algorithm.ISNaNorIfinity(bitRate); outputParameters[10].DefaultValue = Math.Round(bitRate, 4).ToString().Trim(); outputParameters[11].FiledName = "XMASKMARGIN2(%)"; //EyeHeight bitRate = Algorithm.ISNaNorIfinity(XmarginVaulue2); outputParameters[11].DefaultValue = Math.Round(XmarginVaulue2, 4).ToString().Trim(); for (int i = 0; i < outputParameters.Length; i++) { Log.SaveLogToTxt(outputParameters[i].FiledName + " : " + outputParameters[i].DefaultValue); } return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } } }
protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList) { try { int ArrayLength = 1; if (flagReadTxpowerDmi) { ArrayLength += 1; } if (flagReadRxpowerDmi) { ArrayLength += 1; } outputParameters = new TestModeEquipmentParameters[ArrayLength]; outputParameters[0].FiledName = "Tr_ErrorRate(%)"; Ber = Algorithm.ISNaNorIfinity(Ber); outputParameters[0].DefaultValue = Ber.ToString().Trim(); if (flagReadRxpowerDmi) { DmiRxPower = Algorithm.ISNaNorIfinity(DmiRxPower); outputParameters[1].DefaultValue = DmiRxPower.ToString().Trim(); outputParameters[1].FiledName = "DmiRxPower"; } if (flagReadTxpowerDmi) { if (flagReadRxpowerDmi) { outputParameters[2].FiledName = "DmiTxPower"; DmiTxPower = Algorithm.ISNaNorIfinity(DmiTxPower); outputParameters[2].DefaultValue = DmiTxPower.ToString().Trim(); } else { outputParameters[1].FiledName = "DmiTxPower"; DmiTxPower = Algorithm.ISNaNorIfinity(DmiTxPower); outputParameters[1].DefaultValue = DmiTxPower.ToString().Trim(); } } return(true); } catch (InnoExCeption ex)//from driver { //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); } catch (Exception error)//from itself { //one way: deal this exception itself InnoExCeption ex = new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); //Log.SaveLogToTxt(ex.ID + ": " + ex.Message + "\r\n" + ex.StackTrace); exceptionList.Add(ex); return(false); //the other way is: should throw exception, rather than the above three code. see below: //throw new InnoExCeption(ExceptionDictionary.Code._0x02F04, error.StackTrace); } }