Click here to Skip to main content
16,013,516 members

Comments by alidayan (Top 15 by date)

alidayan 5-Jan-18 8:51am View    
Problem cause on function called calculateAndDrawGraph(); when try to draw graph. --series[0] works others not
alidayan 5-Jan-18 8:46am View    
Problem is I couldn't understand how to do Threading. I have tried but faced with the same problem.
alidayan 5-Jan-18 2:12am View    
Problem causes when I add this lines
 
chartResult.Series[0].Points.AddXY(i, realDatas[i]);          chartResult.Series["onLineAvg"].Points.AddXY(i, onLineAvg[i]);chartResult.Series["multOnLineAvg"].Points.AddXY(i, multOnLineAvg[i]); 
alidayan 4-Jan-18 6:25am View    
Thank you very much. I have added
private void backgroundWorkerGetAndProcessData_DoWork(object sender, DoWorkEventArgs e)        {            communicateNow();        }
and called with
backgroundWorkerGetAndProcessData.RunWorkerAsync();
when RunWorkerCompleted recalled it with
private void backgroundWorkerGetAndProcessData_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)        {            backgroundWorkerGetAndProcessData.RunWorkerAsync();        }
now get System.InvalidOperationException: 'Collection was modified; enumeration operation may not execute.' error
alidayan 4-Jan-18 4:32am View    
Thank you for your response. Yes device waits command to response so I have to send some data with write command and wait for response from device with read method. I will try BackgroundWorker class which I have never try. Also if I comment communicateNow() Program is not going to stuck but every time that I want to get data from device must click on receive button.