Beispiel #1
0
 public void CloneReference(ref PowerStatus ps1,
                            ref PowerStatus ps2,
                            ref SweepResult sr,
                            ref RFErrors rfr_errors1,
                            ref RFErrors rfr_errors2)
 {
     ps1         = rfStatus_1;
     ps2         = rfStatus_2;
     sr          = sweepValue;
     rfr_errors1 = rfErrors_1;
     rfr_errors2 = rfErrors_2;
 }
Beispiel #2
0
        private void btnRF2_On_Click(object sender, EventArgs e)
        {
            numericUpDownFreq2.Enabled = false;
            numericUpDownRF2.Enabled   = false;
            btnRF2_On.Enabled          = false;
            btnRF2_Off.Enabled         = true;

            float freq_2  = (float)numericUpDownFreq2.Value;
            float power_2 = (float)numericUpDownRF2.Value;

            exe_params.TmeParam.F2 = freq_2;
            exe_params.TmeParam.P2 = OffsetPower(freq_2, power_2, 2);

            exe_params.DevInfo.RF_Addr2 = App_Configure.Cnfgs.ComAddr2;
            exe_params.RFInvolved       = RFInvolved.Rf_2;
            rfStatus_2 = new PowerStatus();
            rfErrors_2 = new RFErrors();

            thdRF2 = new Thread(StartRF);
            thdRF2.IsBackground = true;
            thdRF2.Start(RFInvolved.Rf_2);
        }
Beispiel #3
0
        /// <summary>
        /// 建立实例变量
        /// </summary>
        internal void InitSweep()
        {
            ctrl = new SweepCtrl();

            exe_params = new SweepParams();

            power1_Handle = new ManualResetEvent(false);

            power2_Handle = new ManualResetEvent(false);

            thrd_Handle = new ManualResetEvent(false);

            sweepValue = new SweepResult();

            rfStatus_1 = new PowerStatus();

            rfStatus_2 = new PowerStatus();

            rfErrors_1 = new RFErrors();

            rfErrors_2 = new RFErrors();
        }
Beispiel #4
0
        private void btnRF1_On_Click(object sender, EventArgs e)
        {
            numericUpDownFreq1.Enabled = false;
            numericUpDownRF1.Enabled   = false;
            btnRF1_On.Enabled          = false;
            btnRF1_Off.Enabled         = true;

            float freq_1  = (float)numericUpDownFreq1.Value;
            float power_1 = (float)numericUpDownRF1.Value;

            exe_params.TmeParam.F1 = freq_1;
            exe_params.TmeParam.P1 = OffsetPower(freq_1, power_1, 1);

            exe_params.DevInfo.RF_Addr1 = App_Configure.Cnfgs.ComAddr1;
            exe_params.RFInvolved       = RFInvolved.Rf_1;
            rfStatus_1 = new PowerStatus();
            rfErrors_1 = new RFErrors();

            thdRF1 = new Thread(StartRF);
            thdRF1.IsBackground = true;
            thdRF1.Start(RFInvolved.Rf_1);
        }