Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 points limitation in RT
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

oliversleep

35 Posts

Posted - 29 Jul 2010 :  13:57:07  Show Profile  Reply with Quote
Hello,

I'm currently working on a RT chart.
I add
_ 10 RTProcessVar in the chart.
_ 1 timer to set values (each 100ms or 10ms depends)

At the beginning no problem, the charts are OK, but after few seconds the charts are running but the start of the chart disappear.
After, the charts run, but few seconds later the next beginning disappear.

Do you have an idea if there is a limitation in the number of points in a RT chart ?

Thanks

quinncurtis

1164 Posts

Posted - 29 Jul 2010 :  14:18:53  Show Profile  Reply with Quote
There can be limits imposed on the maximum size of the history buffer used to store the data points, though that is not the default.

Do you set the process variable AutoTruncateDatasetflag true? If so, set it false instead.

processVar1.AutoTruncateDataset = false;
Go to Top of Page

oliversleep

35 Posts

Posted - 30 Jul 2010 :  03:44:41  Show Profile  Reply with Quote
Thanks a lot for your answer. It seems working now :).
But after fews seconds/minutes, the graph is very slow, like a buffer saturation. Is it possible to flush a part of the data? (no visible datas for example)

I don't find any information about AutoTruncateDatasetflag function in the RTpdf or Help documentation. Can you give me some explication please ?

In your post you talk about "maximum size of the history buffer", how can I get this property value ? And is it possible to change this value ?

Edited by - oliversleep on 30 Jul 2010 05:18:26
Go to Top of Page

quinncurtis

1164 Posts

Posted - 30 Jul 2010 :  08:20:20  Show Profile  Reply with Quote
You should setup the history buffer truncation to hold no more than a couple of screens of data.

If you are displaying 15 seconds worth of data at 10 ms/sample, you can truncate the data once you get more 30 seconds worth of data in the buffer. Truncate the data so there are still enough data points to fill the entire scroll frame. In the example below the dataset is auto-truncated when the number of data points reaches 4500. It is truncated to 3000 data points.

Use the RTProcessVar AutoTruncateDataset, AutoTruncateMinCount, and AutoTruncateMaxCount properties. When the scroll buffer reaches the AutoTruncateMaxCount value, it deletes the oldest data points until there are only AutoTruncateMinCount values in the buffer.

For example:

RTProcessVar EngineRPM1 = new RTProcessVar("RPM", defaultattrib);
.
.
.
EngineCylinders1.AutoTruncateDataset = true;
EngineCylinders1.AutoTruncateMinCount = 3000;
EngineCylinders1.AutoTruncateMaxCount = 4500;

Once you set these properties, you don't have to do anything else, the data will be truncated automatically.

Also, to maximize update speed, set the FastClipMode property to ChartObj.FASTCLIP_X for each line plot you are displaying. From the Dynamometer example program:

for (int i=0; i < 4; i++)
{
	SimpleLinePlot lineplot =  new SimpleLinePlot(pTransform1, null, attribarray[i]);
      lineplot.FastClipMode = ChartObj.FASTCLIP_X;
      rtLinePlotArray1[i] = new RTSimpleSingleValuePlot(pTransform1,lineplot, EngineCylinderTemp1[i]);
      chartVu.AddChartObject(rtLinePlotArray1[i]);			
}

Go to Top of Page

oliversleep

35 Posts

Posted - 30 Jul 2010 :  09:07:55  Show Profile  Reply with Quote
Thx a lot for your quick answer.
I was previously using the "lineplot.FastClipMode = ChartObj.FASTCLIP_X;" parameter.

Now I'm testing AutoTruncate Counts. I hope it's the solution to my problem.

Thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07