示例#1
0
文件: Collect.cs 项目: radtek/INCC6
        public bool StartHVCalib()
        {
            ResetForMeasurement();
            bool res = false;

            if (ctrlHVCalib == null)
            {
                ctrlHVCalib = new HVControl(this);
            }

            if (CurState.State == DAQInstrState.HVCalib)  // one already in progress
            {
                CurState.Cancel();
            }
            else
            {
                res = ctrlHVCalib.HVStartCalibration();
            }
            return(res);
        }
示例#2
0
        public bool StartHVCalib()
        {
            ResetForMeasurement();
            bool res = false;
            if (ctrlHVCalib == null)
                ctrlHVCalib = new HVControl(this);

            if (CurState.State == DAQInstrState.HVCalib)  // one already in progress
            {
                CurState.Cancel();
            }
            else
            {
                res = ctrlHVCalib.HVStartCalibration();
            }
            return res;
        }
示例#3
0
 public void AppendHVCalibration(HVControl.HVStatus hvst)
 {
     ctrlHVCalib.AddStepData(hvst);
 }
示例#4
0
文件: HV.cs 项目: hnordquist/INCC6
        public static Row CreateRow(HVControl.HVStatus h, int i)
        {
            Row row = new Row();
            row.Add((int)HVVals.Run, i.ToString());
            row.Add((int)HVVals.Time, h.time.ToString("s"));
            row.Add((int)HVVals.HVRead, h.HVread.ToString());
            row.Add((int)HVVals.HVSetPt, h.HVsetpt.ToString());

            for (int j = (int)HVVals.C1; j <= (int)HVVals.C32; j++)
            {
                row.Add(j, h.counts[j - (int)HVVals.C1].ToString());
            }

            return row;
        }
示例#5
0
文件: HV.cs 项目: hnordquist/INCC6
 // implement incremental row addition using something like this
 public void AddRow(HVControl.HVStatus h, int r)
 {
     int lc = System.Enum.GetValues(typeof(SimpleHVReport.HVVals)).Length;
     Row row = SimpleHVReport.CreateRow(h, r);
     try
     {
     #if EXCEL
         for (int j = 1; j <= lc; j++)
         {
             target.Cells[r + 1, j] = row[j - 1];
         }
     #endif
     }
     catch (Exception e)
     {
         ctrllog.TraceException(e);
     }
 }