I edited the code as below. Instead of using the thread I plot points at each timer.tick event. But still not getting a smooth sine wave.
private void Timer1_Tick(object sender, EventArgs e)
{
byte[] bytes = new byte[client.ReceiveBufferSize];
var readCount =...
Because it is the string data that comes and can not plot all the points in a given time.
if I modify the code as below,
private void ch1()
{
for (int a = 1; a < arr.Length; a++)
{
chart1.Invoke((MethodInvoker)(() =>...
I want to plot all the data points, I get from the TCP server. But I could not figure out a way to plot all the data points. Instead currently I print the string to the text box. From the text box only the first line is printed. This is a real time data plotting for an oscilloscope GUI. How can...
I need to plot the data from the server in a GUI in client. I am getting the data from the server to the client on PC. What I am currently doing is getting the data to a text box and each text is put into a array and data is taken from the array and plot the graph.
Is there any other easy...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.