private bool MultChannelTest()//MultChannelTest
        {
            ushort tempRxPowerADC = 0;

            // double RxResponsivity;



            pAtt.SetAllChannnel_RxOverLoad(Convert.ToSingle(RxInputPower));

            Thread.Sleep(2000);


            for (int j = 1; j < 5; j++)
            {
                dut.ChangeChannel(j.ToString());

                for (byte i = 0; i < ReadRxPowerAdcCount; i++)
                {
                    Thread.Sleep(200);


                    dut.ReadRxpADC(out tempRxPowerADC);

                    Log.SaveLogToTxt("Channnel=" + j.ToString() + " tempRxPowerADC:" + tempRxPowerADC.ToString());
                }

                Responsivity = Algorithm.CalculateRxResponsivity(Convert.ToDouble(RxInputPower), Convert.ToDouble(tempRxPowerADC), Vref, Rref, Resolution, Ratio);

                Log.SaveLogToTxt("Channel=" + j + " Responsivity= " + Responsivity.ToString());

                DataRow drResponsivity = DtTestData.NewRow();

                drResponsivity["Temp"]     = GlobalParameters.CurrentTemp;
                drResponsivity["Vcc"]      = GlobalParameters.CurrentVcc;
                drResponsivity["Channel"]  = j;
                drResponsivity["Response"] = Responsivity;
                DtTestData.Rows.Add(drResponsivity);
            }

            return(true);
        }
        private bool SingleChannelTest()
        {
            ushort tempRxPowerADC = 0;

            pAtt.AttnValue(RxInputPower.ToString(), 1);

            Thread.Sleep(2000);

            for (byte i = 0; i < ReadRxPowerAdcCount; i++)
            {
                Thread.Sleep(200);
                dut.ReadRxpADC(out tempRxPowerADC);
                Log.SaveLogToTxt("tempRxPowerADCArray:" + tempRxPowerADC.ToString());
            }

            Responsivity = Algorithm.CalculateRxResponsivity(Convert.ToDouble(RxInputPower), Convert.ToDouble(tempRxPowerADC), Vref, Rref, Resolution, Ratio);

            Log.SaveLogToTxt("Responsivity= " + Responsivity.ToString());

            return(true);
        }