private bool SetTargetPower(double TargerPower)
        {
            //  double[] PowerArray = new double[] { -30, -43, -41, -40.2 };


            double TempValue;
            double StartPower;

            pAtt.SetAttnValue(0, 1);

            StartPower = pPowerMeter.ReadPower();

            pAtt.SetAttnValue((StartPower - TargerPower), 1);

            double AttStep = 0;

            TempValue = pPowerMeter.ReadPower();
            int i = 0;

            while (Math.Abs(TargerPower - TempValue) > 0.5)
            {
                if (TempValue - TargerPower > 1)
                {
                    AttStep = 1;
                }
                else if (TempValue - TargerPower < -1)
                {
                    AttStep = -1;
                }
                else if (TempValue - TargerPower > 0.2)
                {
                    AttStep = 0.2;
                }
                else if (TempValue - TargerPower < -0.2)
                {
                    AttStep = -0.2;
                }

                pAtt.AdjustAttnValue(AttStep, 1);
                TempValue = pPowerMeter.ReadPower();
                //----------------
                //  TempValue = PowerArray[i];
                //----------------
                i++;
                if (i > 20)
                {
                    return(false);
                }
            }



            return(true);
        }