Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 points limitation in RT

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
oliversleep Posted - 29 Jul 2010 : 13:57:07
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
4   L A T E S T    R E P L I E S    (Newest First)
oliversleep Posted - 30 Jul 2010 : 09:07:55
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.
quinncurtis Posted - 30 Jul 2010 : 08:20:20
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]);			
}

oliversleep Posted - 30 Jul 2010 : 03:44:41
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 ?
quinncurtis Posted - 29 Jul 2010 : 14:18:53
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;

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07