Пример #1
0
        private void Debug_InitMonitor(double SamplingRate)
        {
            if (null == this.m_Monitor)
            {
                lock (this)
                {
                    if (null == this.m_Monitor)
                    {
                        System.Diagnostics.Debug.Assert(null == this.m_Monitor);

                        this.m_Monitor = new PskOnline.common.debug.signalmonitor.Monitor(SamplingRate, typeof(PpgPulseDetectorByDerivative).FullName, 1);

#if KEEP_DATA_IN_DEBUG_MONITOR
                        this.m_Monitor.KeepData = true;
#endif

                        this.m_Monitor.SetTimeSpan(10);
                        this.m_Monitor.SetValueMinMax(0, 1024);

                        channelADC_Black     = this.m_Monitor.AddChannel(SamplingRate, "ADC", System.Drawing.Color.Black, 1);
                        channelY_Crimson     = this.m_Monitor.AddChannel(SamplingRate, "Y", System.Drawing.Color.Crimson, 1);
                        channelMY_Red        = this.m_Monitor.AddChannel(SamplingRate, "MY", System.Drawing.Color.Red, 1);
                        channelDY_LightGreen = this.m_Monitor.AddChannel(SamplingRate, "DY", System.Drawing.Color.LightGreen, 1);

                        channelDY_T_Brown = this.m_Monitor.AddChannel(SamplingRate, "DY_T", System.Drawing.Color.Brown, 1);
                        channelT_Maroon   = this.m_Monitor.AddChannel(SamplingRate, "T", System.Drawing.Color.Maroon, 2);

                        channelMDY_Blue   = this.m_Monitor.AddChannel(SamplingRate, "MDY", System.Drawing.Color.Blue, 1);
                        channelD2Y_Orange = this.m_Monitor.AddChannel(SamplingRate, "D2Y", System.Drawing.Color.Orange, 1);
                    }
                }
            }
        }
 private void Debug_DisposeMonitor()
 {
     if (null != this.m_Monitor)
     {
         m_Monitor.Dispose();
         m_Monitor = null;
     }
 }
        private void Debug_InitMonitor(double SamplingRate)
        {
            System.Diagnostics.Debug.Assert(null == this.m_Monitor);

            this.m_Monitor = new PskOnline.common.debug.signalmonitor.Monitor(SamplingRate, typeof(PpgDispersionNormalizer).FullName, 1);

            this.m_Monitor.SetTimeSpan(10);
            this.m_Monitor.SetValueMinMax(0, 1024);

            channelADC_Black       = this.m_Monitor.AddChannel(SamplingRate, "ADC", System.Drawing.Color.Black, 1);
            channelStab_DarkGray   = this.m_Monitor.AddChannel(SamplingRate, "stab", System.Drawing.Color.DarkGray, 2);
            channelY_Crimson       = this.m_Monitor.AddChannel(SamplingRate, "Y", System.Drawing.Color.Crimson, 1);
            channelSTAB_SUMM_Olive = this.m_Monitor.AddChannel(SamplingRate, "stab_sum", System.Drawing.Color.Olive, 2);
            channelMY_Red          = this.m_Monitor.AddChannel(SamplingRate, "MY", System.Drawing.Color.Red, 1);
            channelKA_Brown        = this.m_Monitor.AddChannel(SamplingRate, "KA", System.Drawing.Color.Brown, 1);
            channelDY_LightGreen   = this.m_Monitor.AddChannel(SamplingRate, "DY", System.Drawing.Color.LightGreen, 1);
            channelDYCut_Green     = this.m_Monitor.AddChannel(SamplingRate, "DY_CUT", System.Drawing.Color.Green, 1);
            channelMDY_Blue        = this.m_Monitor.AddChannel(SamplingRate, "MDY", System.Drawing.Color.Blue, 1);
            channelD2Y_Orange      = this.m_Monitor.AddChannel(SamplingRate, "D2Y", System.Drawing.Color.Orange, 1);
        }