Beispiel #1
0
 public RxInfo(int id)
 {
     config      = new SqlConfig("RxInfo", id.ToString());
     var         = new RX_VAR();
     i_MeasCount = 0;
     bRunning    = false;
 }
Beispiel #2
0
        private void UpdateStatusBar(object sender, string msg)
        {
            if (msg == "newvalue")
            {
                RX_VAR rv = task.currRx.var;

                AddValue(task.currRx.iChan.ToString(), task.iMeasCnt, rv.rRx, 0, 0);

                lbl_aux1.Text    = UpdateDisplayReading(aux1_mode);
                lbl_aux2.Text    = UpdateDisplayReading(aux2_mode);
                lbl_bigdisp.Text = UpdateDisplayReading(bigdisp_mode);
                DeviceMgr.ReportData(task.iMeasCnt, rv.rRx);
                LogData(task.iMeasCnt, rv.rRx);

                /*
                 * statusBar1.total = syscfg.iMeasTimes;
                 * statusBar1.count = task.iMeasCnt;
                 */
            }
            else if (msg == "complete")
            {
                if (runstate.NumOfRunsLeft > 0)
                {
                    DoNextMeasure();
                }
                else
                {
                    if (Program.sysinfo.bThrow)
                    {
                        ThrowData();
                    }
                    LogComplete();
                    bt_run.Text    = StringResource.str("start");
                    btn_menu.Label = StringResource.str("menu");
                }
            }
            else
            {
                string txt = StringResource.str(msg);
                if (txt == msg)
                {
                    MsgDlg.Show(task.currRx.var.errMsg);
                }
                else
                {
                    bt_run.Text = txt;
                }
            }
        }
Beispiel #3
0
 void UpdateStatusBar(object sender, string msg)
 {
     if (msg == "newvalue")
     {
         RX_VAR rv = task.currRx.var;
         rxDisplay1.AddValue(task.iMeasCnt, rv.rRx);
         DeviceMgr.ReportData(task.iMeasCnt, rv.rRx);
         rxDisplay1.LogData(task.iMeasCnt, rv.rRx);
         statusBar1.total = syscfg.iMeasTimes;
         statusBar1.count = task.iMeasCnt;
     }
     if (msg == "complete")
     {
         if (RunWnd.syscfg.bThrow)
         {
             rxDisplay1.ThrowData();
         }
         rxDisplay1.LogComplete();
     }
     statusBar1.status  = task.currRx.i_State;
     statusBar1.message = task.currRx.var.errMsg;
 }
Beispiel #4
0
 public RxInfo(int id)
 {
     iChan = id;
     config = new SqlConfig("RxInfo", id.ToString());
     var = new RX_VAR(this);
 }
Beispiel #5
0
 public RxInfo(int id)
 {
     config = new SqlConfig("RxInfo", id.ToString());
     var    = new RX_VAR(this);
 }
Beispiel #6
0
 public RxInfo(int id)
 {
     config = new SqlConfig("RxInfo", id.ToString());
     var = new RX_VAR();
     i_MeasCount = 0;
     bRunning = false;
 }