SetSpectrumFitFunctionComboState() public method

public SetSpectrumFitFunctionComboState ( bool state ) : void
state bool
return void
Ejemplo n.º 1
0
        public void AcquireStart()
        {
            numberOfScansSoFar = 0;

            // clear the stored data
            pointsToPlot.Points.Clear();
            // grab the latest settings
            PluginSettings outputSettings = Controller.GetController().ProfileManager.
                                            CurrentProfile.AcquisitorConfig.outputPlugin.Settings;
            PluginSettings shotSettings = Controller.GetController().ProfileManager.
                                          CurrentProfile.AcquisitorConfig.shotGathererPlugin.Settings;
            PluginSettings pgSettings = Controller.GetController().ProfileManager.CurrentProfile.AcquisitorConfig.pgPlugin.Settings;

            // initially set the gates to full
            startSpectrumGate = (double)outputSettings["start"];
            endSpectrumGate   = (double)outputSettings["end"];

            // prepare the front panel
            window.ClearAll();
            window.SpectrumAxes = new PlotParameters(
                (double)outputSettings["start"], (double)outputSettings["end"]);
            window.SpectrumGate = new PlotParameters(startSpectrumGate, endSpectrumGate, (int)outputSettings["pointsPerScan"]);
            startTOFGate        = (int)shotSettings["gateStartTime"];
            endTOFGate          = startTOFGate + (int)shotSettings["gateLength"] * (int)shotSettings["clockPeriod"];
            window.TOFGate      = new PlotParameters(startTOFGate, endTOFGate);

            // disable the fit function selectors
            window.SetTofFitFunctionComboState(false);
            window.SetSpectrumFitFunctionComboState(false);

            //initialize cursors
            //window.InitializeCursors();
        }
Ejemplo n.º 2
0
        public void AcquireStart()
        {
            // clear the stored data
            pointsToPlot.Points.Clear();
            if (avOnTofs != null)
            {
                avOnTofs = null;
            }
            if (avOffTofs != null)
            {
                avOffTofs = null;
            }
            shotCounter = 0;
            onAverages  = 1;
            offAverages = 1;
            // grab the latest settings
            PluginSettings outputSettings = Controller.GetController().ProfileManager.
                                            CurrentProfile.AcquisitorConfig.outputPlugin.Settings;
            PluginSettings shotSettings = Controller.GetController().ProfileManager.
                                          CurrentProfile.AcquisitorConfig.shotGathererPlugin.Settings;
            PluginSettings pgSettings = Controller.GetController().ProfileManager.CurrentProfile.AcquisitorConfig.pgPlugin.Settings;

            // initially set the gates to full
            startSpectrumGate = (double)outputSettings["start"];
            endSpectrumGate   = (double)outputSettings["end"];

            // prepare the front panel
            window.ClearAll();
            window.SpectrumAxes = new NationalInstruments.UI.Range(
                (double)outputSettings["start"], (double)outputSettings["end"]);
            window.SpectrumGate = new NationalInstruments.UI.Range(startSpectrumGate, endSpectrumGate);
            startTOFGate        = (int)shotSettings["gateStartTime"];
            endTOFGate          = startTOFGate + (int)shotSettings["gateLength"] * (int)shotSettings["clockPeriod"];
            window.TOFGate      = new NationalInstruments.UI.Range(startTOFGate, endTOFGate);



            // disable the fit function selectors
            window.SetTofFitFunctionComboState(false);
            window.SetSpectrumFitFunctionComboState(false);
        }