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 Java
 QCChart2D for Java
 Scrolling polygraph data loss
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

KnightHawk

22 Posts

Posted - 18 May 2006 :  22:51:26  Show Profile  Reply with Quote
I noticed that if you change the variable timespan of Polygraph.java to say, 1000 and run the program, the charts in Polygraph will plot data but at time 106 seconds (for me) the first quarter to half of the plotted data is erased. This trend continues erasing the first quarter to half of plotted data every now and again.

Is there a setting that corresponds to how many points of data to keep on a chart?

KnightHawk

22 Posts

Posted - 18 May 2006 :  23:53:02  Show Profile  Reply with Quote
Ahhhhh, AutoTruncate sets this.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 19 May 2006 :  09:27:07  Show Profile  Reply with Quote
First, you are posting in the wrong forum. Questions about the RTGraph routines belong in the RTGraph for Java forum.

Turning the AutoTruncate function off using RTProcessVar.setAutoTruncateDataset(false), is one solution, assuming that your program has a finite run time and does not acquire enormous amounts of data. Otherwise the RTProcessVar buffers holding the historical data can become huge, slowing things down. A better solution is to set the minimum and maximum values of RTProcessVar historical buffer using the RTProcessVar.setAutoTruncateMaxCount, and RTProcessVar.setAutoTruncateMinCount methods. If the autoTruncate flag is true, the buffer automatically truncates when the number of data points reaches autoTruncateMaxCount. It truncates the number of points in the data set to autoTruncateMinCount.
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