Пример #1
0
        public IDDHighVoltagePlateau()
        {
            InitializeComponent();

            Integ.GetCurrentAcquireDetectorPair(ref acq, ref det);
            hvp = Integ.GetCurrentHVCalibrationParams(det);

            this.Text += " for detector " + det.Id.DetectorName;
            MinimumVoltageTextBox.Text  = hvp.MinHV.ToString();
            MaximumVoltageTextBox.Text  = hvp.MaxHV.ToString();
            VoltageStepSizeTextBox.Text = hvp.Step.ToString();
            CountTimeTextBox.Text       = hvp.HVDuration.ToString();
            HVStepDelay.Text            = hvp.DelayMS.ToString();
        }
Пример #2
0
        public IDDHighVoltagePlateau()
        {
            InitializeComponent();

            Integ.GetCurrentAcquireDetectorPair(ref acq, ref det);
            hvp = Integ.GetCurrentHVCalibrationParams(det);

            this.Text += " for detector " + det.Id.DetectorName;
            MinimumVoltageTextBox.Text = hvp.MinHV.ToString();
            MaximumVoltageTextBox.Text = hvp.MaxHV.ToString();
            VoltageStepSizeTextBox.Text = hvp.Step.ToString();
            CountTimeTextBox.Text = hvp.HVDuration.ToString();
            HVStepDelay.Text = hvp.DelayMS.ToString();

        }
Пример #3
0
        public static HVCalibrationParameters GetCurrentHVCalibrationParams(Detector det)
        {
            HVCalibrationParameters bp = new AnalysisDefs.HVCalibrationParameters();

            if (det != null)
            {
                if (CentralizedState.App.DB.HVParameters.Map.ContainsKey(det))
                {
                    bp.Copy(CentralizedState.App.DB.HVParameters.Map[det]);
                }
                else if (det.ListMode)
                {
                    AcquireParameters acq = GetCurrentAcquireParamsFor(det);
                    bp = new AnalysisDefs.HVCalibrationParameters(acq.lm);
                }
            }
            return(bp);
        }
Пример #4
0
 public static HVCalibrationParameters GetCurrentHVCalibrationParams(Detector det)
 {
     HVCalibrationParameters bp = new AnalysisDefs.HVCalibrationParameters();
     if (det != null)
     {
         if (CentralizedState.App.DB.HVParameters.Map.ContainsKey(det))
             bp.Copy(CentralizedState.App.DB.HVParameters.Map[det]);
         else if (det.ListMode)
         {
             AcquireParameters acq = GetCurrentAcquireParamsFor(det);
             bp = new AnalysisDefs.HVCalibrationParameters(acq.lm);
         }
     }
     return bp;
 }