예제 #1
0
        private void PollData()
        {
            var read = ParentMetric.ReadData(_buffer);

            if (read > 0)
            {
                _line.Add(_buffer);
                _redraw = true;
            }
        }
예제 #2
0
        private void PollData()
        {
            var avail = ParentMetric.Available;

            for (int i = 0; i < avail; i++)
            {
                var read = ParentMetric.ReadData(_buffer);
                if (read == 0)
                {
                    break;
                }
                _plot.AddFrame(_buffer.Data);
            }
        }