예제 #1
0
        private void comboSWRThresh_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            double swr_thresh = 0.0;

            switch ((byte)comboSWRThresh.SelectedIndex)
            {
            case 0: swr_thresh = 1.1; break;

            case 1: swr_thresh = 1.3; break;

            case 2: swr_thresh = 1.5; break;

            case 3: swr_thresh = 1.7; break;

            case 4: swr_thresh = 2.0; break;

            case 5: swr_thresh = 2.5; break;

            case 6: swr_thresh = 3.0; break;
            }
            if (FWCATU.SWRThreshold != swr_thresh)
            {
                FWCATU.SetSWRThreshold(swr_thresh);
            }
        }
        private void comboSWRThresh_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            double swr_thresh = 0.0;

            switch ((byte)comboSWRThresh.SelectedIndex)
            {
            case 0: swr_thresh = 1.1; break;

            case 1: swr_thresh = 1.3; break;

            case 2: swr_thresh = 1.5; break;

            case 3: swr_thresh = 1.7; break;

            case 4: swr_thresh = 2.0; break;

            case 5: swr_thresh = 2.5; break;

            case 6: swr_thresh = 3.0; break;
            }
            if (FWCATU.SWRThreshold != swr_thresh)
            {
                FWCATU.SetSWRThreshold(swr_thresh);
            }

            //     byte b1, b2, b3, b4;
            //     do
            //     {
            //         FWC.ATUGetResult(out b1, out b2, out b3, out b4, 200);
            //     } while (b4 > 0);
        }