Exemplo n.º 1
0
        private void InitializeGraphCompoment()
        {
            MainGraph = new CZedGraph_RealTime(zedGraphControl1);
            MainGraph.SetGraphTitle("Accelerometer data");
            MainGraph.SetAxisXTitle("Time (s)");
            MainGraph.SetAxisYTitle("G");
            MainGraph.AddCurve("X", Color.Red);
            MainGraph.AddCurve("Y", Color.Blue);
            MainGraph.AddCurve("Z", Color.Green);

            MainGraph.SetYAxis_MaxValue(2);
            MainGraph.SetYAxis_MinValue(-2);

            hScrollBar_XScale.Value  = 5;
            textBoxCurTimeScale.Text = hScrollBar_XScale.Value.ToString();
            textBoxMinTimeScale.Text = hScrollBar_XScale.Minimum.ToString();
            textBoxMaxTimeScale.Text = hScrollBar_XScale.Maximum.ToString();
        }