Exemplo n.º 1
0
 protected override bool AnalysisOutputProcData(TestModeEquipmentParameters[] infoList)
 {
     try
     {
         outputParameters = new TestModeEquipmentParameters[2];
         outputParameters[1].FiledName    = "CrossingDAC";
         outputParameters[1].DefaultValue = outDAC.ToString();
         outputParameters[0].FiledName    = "Crossing(%)";
         outputParameters[0].DefaultValue = outCrossing.ToString();
         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._0x02F05, 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._0x02F05, error.StackTrace);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        protected override bool AnalysisOutputProcData(TestModeEquipmentParameters[] InformationList)
        {
            try
            {
                procData = new TestModeEquipmentParameters[2];
                procData[0].FiledName    = "TARGETLOSADAC";
                procData[0].DefaultValue = Convert.ToString(targetLosADac);
                procData[1].FiledName    = "TARGETLOSDDAC";
                procData[1].DefaultValue = Convert.ToString(targetLosDDac);

                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._0x02F05, 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._0x02F05, error.StackTrace);
            }
        }
Exemplo n.º 4
0
        protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList)
        {
            try
            {
                //outputParameters = new TestModeEquipmentParameters[1];
                //outputParameters[0].FiledName = "Wavelength(nm)";
                //outputParameters[0].DefaultValue = Wavelength.ToString();

                outputParameters = new TestModeEquipmentParameters[TestDatad.Rows.Count];

                for (int i = 0; i < TestDatad.Rows.Count; i++)
                {
                    outputParameters[i].FiledName    = TestDatad.Rows[i]["ItemName"].ToString();
                    outputParameters[i].DefaultValue = TestDatad.Rows[i]["ItemValue"].ToString();
                }
                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);
            }
        }
Exemplo n.º 5
0
        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);
            }
        }
Exemplo n.º 6
0
        protected override bool AnalysisOutputProcData(TestModeEquipmentParameters[] InformationList)
        {
            try
            {
                procData = new TestModeEquipmentParameters[2];
                procData[0].FiledName    = "VCCADARRAY";
                procData[0].DefaultValue = Algorithm.ArrayListToStringArraySegregateByPunctuations(allVccAdcArray, ",");
                procData[1].FiledName    = "REALVCCARRAY";
                procData[1].DefaultValue = Algorithm.ArrayListToStringArraySegregateByPunctuations(calVccDmiStruct.ArrayListVcc, ",");


                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._0x02F05, 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._0x02F05, 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;
                }
            }
        }
Exemplo n.º 8
0
        protected override bool AnalysisOutputProcData(TestModeEquipmentParameters[] InformationList)
        {
            try
            {
                procData = new TestModeEquipmentParameters[3];

                procData[0].FiledName    = "InputPowerArray";
                procData[0].DefaultValue = sInputPowerArray;
                procData[1].FiledName    = "RXDmiPowArray";
                procData[1].DefaultValue = sRXDmiPowArray;
                procData[2].FiledName    = "DiffArray";
                procData[2].DefaultValue = sDiffArray;

                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._0x02F05, 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._0x02F05, error.StackTrace);
            }
        }
Exemplo n.º 9
0
        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);
            }
        }
Exemplo n.º 10
0
        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);
            }
        }
Exemplo n.º 11
0
        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);
            }
        }
Exemplo n.º 12
0
        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;
            //}
        }
Exemplo n.º 13
0
        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);
                }
            }
        }
Exemplo n.º 14
0
        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 AnalysisOutputProcData(TestModeEquipmentParameters[] InformationList)
        {
            try
            {
                procData = new TestModeEquipmentParameters[2];
                procData[0].FiledName    = "DIETEMP";
                procData[0].DefaultValue = Algorithm.ArrayListToStringArraySegregateByPunctuations(allDieTempratureArray, ",");
                procData[1].FiledName    = "REALTEMPARATURE";
                procData[1].DefaultValue = Convert.ToString(GlobalParameters.CurrentTemp);

                return(true);
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 16
0
        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);
            }
        }
Exemplo n.º 17
0
 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;
     }
 }
Exemplo n.º 18
0
 protected override bool AnalysisOutputProcData(TestModeEquipmentParameters[] InformationList)
 {
     lock (tempAtten)
     {
         try
         {
             procData = new TestModeEquipmentParameters[4];
             procData[0].FiledName    = "SearTargetBerRxPowerArray";
             procData[0].DefaultValue = Algorithm.ArrayListToStringArraySegregateByPunctuations(serchAttPoints, ",");
             procData[1].FiledName    = "SearTargetBerArray";
             procData[1].DefaultValue = Algorithm.ArrayListToStringArraySegregateByPunctuations(serchBerPoints, ",");
             procData[2].FiledName    = "CurvingRxPowerArray";
             procData[2].DefaultValue = Algorithm.ArrayListToStringArraySegregateByPunctuations(attPoints, ",");
             procData[3].FiledName    = "CurvingBerArray";
             procData[3].DefaultValue = Algorithm.ArrayListToStringArraySegregateByPunctuations(berPoints, ",");
             return(true);
         }
         catch (System.Exception ex)
         {
             throw ex;
         }
     }
 }
Exemplo n.º 19
0
        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);
            }
        }
Exemplo n.º 20
0
        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;
            //}
        }
Exemplo n.º 21
0
        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);
                }
            }
        }
Exemplo n.º 22
0
        protected override bool AnalysisOutputParameters(TestModeEquipmentParameters[] InformationList)
        {
            try
            {
                outputParameters = new TestModeEquipmentParameters[20];
                outputParameters[0].FiledName = "TEMPHA";
                outputParameters[0].DefaultValue = Convert.ToString(Convert.ToDouble(!tempHA)).ToString().Trim();
                outputParameters[1].FiledName = "TEMPHW";
                outputParameters[1].DefaultValue = Convert.ToString(Convert.ToDouble(!tempHW)).ToString().Trim();
                outputParameters[2].FiledName = "TEMPLA";
                outputParameters[2].DefaultValue = Convert.ToString(Convert.ToDouble(!tempLA)).ToString().Trim();
                outputParameters[3].FiledName = "TEMPLW";
                outputParameters[3].DefaultValue = Convert.ToString(Convert.ToDouble(!tempLW)).ToString().Trim();
                outputParameters[4].FiledName = "VCCHA";
                outputParameters[4].DefaultValue = Convert.ToString(Convert.ToDouble(!vccHA)).ToString().Trim();
                outputParameters[5].FiledName = "VCCHW";
                outputParameters[5].DefaultValue = Convert.ToString(Convert.ToDouble(!vccHW)).ToString().Trim();
                outputParameters[6].FiledName = "VCCLA";
                outputParameters[6].DefaultValue = Convert.ToString(Convert.ToDouble(!vccLA)).ToString().Trim();
                outputParameters[7].FiledName = "VCCLW";
                outputParameters[7].DefaultValue = Convert.ToString(Convert.ToDouble(!vccLW)).ToString().Trim();
                outputParameters[8].FiledName = "IBIASHA";
                outputParameters[8].DefaultValue = Convert.ToString(Convert.ToDouble(!ibiasHA)).ToString().Trim();
                outputParameters[9].FiledName = "IBIASHW";
                outputParameters[9].DefaultValue = Convert.ToString(Convert.ToDouble(!ibiasHW)).ToString().Trim();
                outputParameters[10].FiledName = "IBIASLA";
                outputParameters[10].DefaultValue = Convert.ToString(Convert.ToDouble(!ibiasLA)).ToString().Trim();
                outputParameters[11].FiledName = "IBIASLW";
                outputParameters[11].DefaultValue = Convert.ToString(Convert.ToDouble(!ibiasLW)).ToString().Trim();
                outputParameters[12].FiledName = "TXPOWERHA";
                outputParameters[12].DefaultValue = Convert.ToString(Convert.ToDouble(!txPowerHA)).ToString().Trim();
                outputParameters[13].FiledName = "TXPOWERHW";
                outputParameters[13].DefaultValue = Convert.ToString(Convert.ToDouble(!txPowerHW)).ToString().Trim();
                outputParameters[14].FiledName = "TXPOWERLA";
                outputParameters[14].DefaultValue = Convert.ToString(Convert.ToDouble(!txPowerLA)).ToString().Trim();
                outputParameters[15].FiledName = "TXPOWERLW";
                outputParameters[15].DefaultValue = Convert.ToString(Convert.ToDouble(!txPowerLW)).ToString().Trim();
                outputParameters[16].FiledName = "RXPOWERHA";
                outputParameters[16].DefaultValue = Convert.ToString(Convert.ToDouble(!rxPowerHA)).ToString().Trim();
                outputParameters[17].FiledName = "RXPOWERHW";
                outputParameters[17].DefaultValue = Convert.ToString(Convert.ToDouble(!rxPowerHW)).ToString().Trim();
                outputParameters[18].FiledName = "RXPOWERLA";
                outputParameters[18].DefaultValue = Convert.ToString(Convert.ToDouble(!rxPowerLA)).ToString().Trim();
                outputParameters[19].FiledName = "RXPOWERLW";
                outputParameters[19].DefaultValue = Convert.ToString(Convert.ToDouble(!rxPowerLW)).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); 
            }

        }