Ejemplo n.º 1
0
        private void FrmRealtimeSweep_Load(object sender, EventArgs e)
        {
            // Start the random data generator
            dataSource = new RandomWave(onData);
            dataSource.start();

            // Now can start the timers for data collection and chart update
            chartUpdateTimer.Interval = 100;
            chartUpdateTimer.Start();
        }
Ejemplo n.º 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Initialize the WinChartViewer
            initChartViewer(WPFChartViewer1);

            // Start the random data generator
            dataSource = new RandomWave(onData);
            dataSource.start();

            // Now can start the timers for data collection and chart update
            var chartUpdateTimer = new DispatcherTimer(DispatcherPriority.Render);

            chartUpdateTimer.Tick    += chartUpdateTimer_Tick;
            chartUpdateTimer.Interval = new TimeSpan(0, 0, 0, 0, 100);
            chartUpdateTimer.Start();
        }