示例#1
0
        // TODO: protected
        public void Scan(byte ratio)
        {
            if (pState == ProgramStates.Ready)
            {
                var g = Graph.MeasureGraph.Instance;
                g.Reset();
                {
                    var co   = g.CommonOptions;
                    var temp = new MeasureMode.Scan(Config.sPoint, Config.ePoint,
                                                    co.befTimeReal, co.iTimeReal, co.eTimeReal,
                                                    p => g.updateGraphDuringScanMeasure(p, Counts),
                                                    Config.autoSaveSpectrumFile,
                                                    ratio);
                    // how to unsubscribe?
                    //realizer.MeasureSend += (s, e) => temp.NextMeasure(e.Value);

                    CurrentMeasureMode = temp;
                }
                initMeasure(ProgramStates.Measure);
            }
        }
示例#2
0
        // TODO: protected
        public void Scan(byte ratio)
        {
            if (pState == ProgramStates.Ready) {
                var g = Graph.MeasureGraph.Instance;
                g.Reset();
                {
                    var co = g.CommonOptions;
                    var temp = new MeasureMode.Scan(Config.sPoint, Config.ePoint,
                        co.befTimeReal, co.iTimeReal, co.eTimeReal,
                        p => g.updateGraphDuringScanMeasure(p, Counts),
                        Config.autoSaveSpectrumFile,
                        ratio);
                    // how to unsubscribe?
                    //realizer.MeasureSend += (s, e) => temp.NextMeasure(e.Value);

                    CurrentMeasureMode = temp;
                }
                initMeasure(ProgramStates.Measure);
            }
        }