//Form Reset Methods - Called everytime the form is shown
        private void ResetData()
        {
            lblMax_T_L.Text = "-";
            lblMax_T_R.Text = "-";
            lblMax_A_L.Text = "-";
            lblMax_A_R.Text = "-";
            lblShapeFactor_L.Text = "-";
            lblShapeFactor_R.Text = "-";
            lblDeviation_L.Text = "-";
            lblDeviation_R.Text = "-";
            lblTime.Text = "00:00";

            chart1.Series[0].Points.Clear();
            chart1.Series[1].Points.Clear();
            chart1.Series[2].Points.Clear();
            chart1.Series[3].Points.Add(0);

            chartRightLeg.Series[0].Points.Clear();
            chartRightLeg.Series[1].Points.Clear();
            chartRightLeg.Series[2].Points.Clear();
            chartRightLeg.Series[3].Points.Clear();

            chartRightLeg.ChartAreas[0].AxisY.Maximum = 180;
            chart1.ChartAreas[0].AxisY.Maximum = 180;

            chartRightLeg.Series[3].Points.Add(0).YValues[0] = -5;

            DataSample = new SpinShaperDS(GlobalVariables.leftSerialPort);
            DataSample.CapturePowerFlag = false;
            ThreadCallbackProcessFeedbackError = DataSample.ProcessErrorSession;
        }
 private void OnUpdateCycleCounter(object sender, SpinShaperDS.UpdateCycleCounterEventArgs args)
 {
     this.Invoke(this.ThreadCallbackUpdateUI, new Object[] { });
 }