title: Not executing sensor acquisition on C#
body: <p>I am trying to develop a program for RS-422 sensor by using c#. there is no 
  error in program but when i connected to the sensor for acquisition there 
  is no result was shown. Program is running without error. 
  I used A Chart for using rtChart and below the chart I am trying to show the chart result when I click the button. please help me to solve this my code is below:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  using rtChart;
  using System.Diagnostics;
  using System.IO.Ports;
  
  namespace WindowsFormsApp9
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
          kayChart serialDataChart;
  
          private void Form1_Load(object sender, EventArgs e)
          {
              serialDataChart = new kayChart(chart1, 60);
              serialDataChart.serieName = "serialRead";
          }
  
          private void chart1_Click(object sender, EventArgs e)
          {
              //
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              SerialPort aSerialPort = new SerialPort("COM3");
              aSerialPort.BaudRate = 9600;
              aSerialPort.Parity = Parity.None;
              aSerialPort.StopBits = StopBits.One;
              aSerialPort.DataReceived += new SerialDataReceivedEventHandler(serialDataReceivedEventHandler);
  
              if(!aSerialPort.IsOpen)
              {
                  aSerialPort.Open();
              }
          }
  
          private void serialDataReceivedEventHandler(object sender, SerialDataReceivedEventArgs e)
          {
              SerialPort sData = sender as SerialPort;
              string recvData = sData.ReadLine();
  
              serialData.Invoke((MethodInvoker)delegate { serialData.AppendText("Received :" +recvData); });
              double data;
              bool result = Double.TryParse(recvData, out data);
              if (result)
              {
                  serialDataChart.TriggeredUpdate(data);
              }
  
          }
  
          private void serialData_TextChanged(object sender, EventArgs e)
          {
              serialData.SelectionStart = serialData.Text.Length;
              serialData.ScrollToCaret();
          }
  
          private void chart1_TabStopChanged(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>