I am new with C# so please bear with me if I did any silly mistake and please DO feel free to correct me.
I done a DataReceivedHander for the serial port.
CODE
private void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e)
{
SerialPort sp = (SerialPort)sender;
string[] indata;
indata = new string[21];
for (int i = 0; i < 20; i++)
{
indata[i] = sp.ReadExisting();
}
}
and I have my graph plotter function, tested with manually input the data.
but now i wanted to put the array from the DataReceivedHandler into my graph function.
So in my graph function will be plotting each array's index value to its receptive location
Can anyone help me out? Thank you in advance