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_AddData(common.debug.signalmonitor.Channel channel, long value) { if (m_bDebug_MonitorEnabled) { System.Diagnostics.Debug.Assert(null != this.m_Monitor); this.m_Monitor.AddData(channel, new double[] { (double)value }); } }
private void Debug_AddData(common.debug.signalmonitor.Channel channel, double[] val_array) { if (m_bDebug_MonitorEnabled && (null != this.m_Monitor)) { lock (this) { if (m_bDebug_MonitorEnabled && (null != this.m_Monitor)) { this.m_Monitor.AddData(channel, val_array); } } } }
private void Debug_AddData(common.debug.signalmonitor.Channel channel, long[] val_array) { if (m_bDebug_MonitorEnabled && (null != this.m_Monitor)) { lock (this) { if (m_bDebug_MonitorEnabled && (null != this.m_Monitor)) { double[] double_val_array = new double[val_array.Length]; System.Array.Copy(val_array, double_val_array, val_array.Length); this.m_Monitor.AddData(channel, double_val_array); } } } }
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); }
private void Debug_AddData(common.debug.signalmonitor.Channel channel, double value) { this.Debug_AddData(channel, new double[] { value }); }
private void Debug_AddData(common.debug.signalmonitor.Channel channel, long value) { this.Debug_AddData(channel, new long[] { value }); }