Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: Visualt Studio 2008 Team Suite for Blackberry Pin
Wes Aday24-Mar-12 4:36
professionalWes Aday24-Mar-12 4:36 
QuestionThe process cannot access the file because it is being used by another process. Pin
ausia1924-Mar-12 2:34
ausia1924-Mar-12 2:34 
AnswerRe: The process cannot access the file because it is being used by another process. Pin
OriginalGriff24-Mar-12 2:51
mveOriginalGriff24-Mar-12 2:51 
AnswerRe: The process cannot access the file because it is being used by another process. Pin
Luc Pattyn24-Mar-12 3:55
sitebuilderLuc Pattyn24-Mar-12 3:55 
AnswerRe: The process cannot access the file because it is being used by another process. PinPopular
Alan N24-Mar-12 4:25
Alan N24-Mar-12 4:25 
GeneralRe: The process cannot access the file because it is being used by another process. Pin
ausia1924-Mar-12 5:38
ausia1924-Mar-12 5:38 
Questionc++ or c# or vb.net Pin
ssssdaaads23-Mar-12 23:52
ssssdaaads23-Mar-12 23:52 
AnswerRe: c++ or c# or vb.net Pin
Abhinav S24-Mar-12 0:08
Abhinav S24-Mar-12 0:08 
AnswerRe: c++ or c# or vb.net Pin
PIEBALDconsult24-Mar-12 3:42
mvePIEBALDconsult24-Mar-12 3:42 
AnswerRe: c++ or c# or vb.net Pin
Wes Aday24-Mar-12 4:33
professionalWes Aday24-Mar-12 4:33 
GeneralRe: c++ or c# or vb.net Pin
Vipin_Arora26-Mar-12 19:39
Vipin_Arora26-Mar-12 19:39 
AnswerRe: c++ or c# or vb.net Pin
ProEnggSoft25-Mar-12 2:33
ProEnggSoft25-Mar-12 2:33 
AnswerRe: c++ or c# or vb.net Pin
Vipin_Arora26-Mar-12 19:31
Vipin_Arora26-Mar-12 19:31 
Questionserver connect Pin
heba abu ghaleih22 23-Mar-12 13:40
heba abu ghaleih22 23-Mar-12 13:40 
AnswerRe: server connect Pin
Richard Andrew x6423-Mar-12 13:53
professionalRichard Andrew x6423-Mar-12 13:53 
GeneralRe: server connect Pin
heba abu ghaleih22 23-Mar-12 14:24
heba abu ghaleih22 23-Mar-12 14:24 
GeneralRe: server connect Pin
Richard Andrew x6423-Mar-12 14:25
professionalRichard Andrew x6423-Mar-12 14:25 
GeneralRe: server connect Pin
heba abu ghaleih22 23-Mar-12 14:27
heba abu ghaleih22 23-Mar-12 14:27 
GeneralRe: server connect Pin
Richard Andrew x6423-Mar-12 14:29
professionalRichard Andrew x6423-Mar-12 14:29 
GeneralRe: server connect Pin
heba abu ghaleih22 23-Mar-12 14:30
heba abu ghaleih22 23-Mar-12 14:30 
QuestionWinform graph Pin
DerecL23-Mar-12 11:14
DerecL23-Mar-12 11:14 
AnswerRe: Winform graph Pin
Eddy Vluggen23-Mar-12 11:24
professionalEddy Vluggen23-Mar-12 11:24 
GeneralRe: Winform graph Pin
DerecL23-Mar-12 11:32
DerecL23-Mar-12 11:32 
QuestionRe: Winform graph Pin
Eddy Vluggen23-Mar-12 11:38
professionalEddy Vluggen23-Mar-12 11:38 
AnswerRe: Winform graph Pin
DerecL23-Mar-12 11:54
DerecL23-Mar-12 11:54 
It takes 12 bytes from microcontroller and there is about 20 records per second. "lag" I did mean its painting slowly (one graph is working perfectly but another is hanging). I did some seconds before loading but it didn't help.

There is data diplay delegate I am using:

C#
private delegate void AddDataToGraphDelegate(int xValue, byte[] yValues);

private void AddDataToGraph(int xValue, byte[] yValues)
{
    if (this.InvokeRequired)
    {
        this.Invoke(new AddDataToGraphDelegate(this.AddDataToGraph), xValue, yValues);
    }
    else
    {
        for (int i = 0, k = 0, l = 0; i < 6; i++)
        {
            l = (yValues[k + 1] << 8) | yValues[k];
            sens_data1[i] = ((short)(l));
            skaicius[1 + i, xvalue] = sens_data1[i];
            k = k + 2;
        }
        accChart.Series["accel ROLL"].Points.AddXY(xValue, sens_data1[0]);
        accChart.Series["accel PITCH"].Points.AddXY(xValue, sens_data1[1]);
        accChart.Series["accel YAW"].Points.AddXY(xValue, sens_data1[2]);

        gyroChart.Series["gyro ROLL"].Points.AddXY(xValue, sens_data1[3]);
        gyroChart.Series["gyro PITCH"].Points.AddXY(xValue, sens_data1[4]);
        gyroChart.Series["gyro YAW"].Points.AddXY(xValue, sens_data1[5]);


        if (xvalue > 100)
        {
            accChart.ChartAreas["Acc"].AxisX.Minimum++;
            accChart.ChartAreas["Acc"].AxisX.Maximum++;

            gyroChart.ChartAreas["Gyro"].AxisX.Minimum++;
            gyroChart.ChartAreas["Gyro"].AxisX.Maximum++;
        }

        Thread.Sleep(50);
        if (graph) comport.Write("V");
    }
}


modified 23-Mar-12 18:14pm.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.