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#)
 Questions regarding Autotruncation

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
soundar Posted - 20 Aug 2015 : 14:14:00
In one of my projects I am using the rtgraph in "cumulative" mode, that is, ScrollScaleModeX = ChartObj.RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL. And I have AutoTruncateMaxCount = 100000 and AutoTruncateMinCount=1000. Unfortunately, the customer wants the graph to "go on forever". Of course this is not possible to due to memory constraints and performance and I have a few questions.

1. if I dont set AutoTruncateMaxCount, does it default to something? (MAX_INT perhaps?)
2. if I dont set AutoTruncateMinCount, does it default to something?
3. Is there a way to trap that an auto-truncation has occured ? (short of keeping count of the points myself)?
4. I am using an elapsed time scale for my x-axis. If a truncation has occured, I would like to shift the StartX to the new minimum. For example, say the graph is displaying from 0 to X seconds, where X is increasing, and now a truncation occurs at, say 10 seconds. I now want the graph to start displaying from 10 to 11, 10 to 12 etc as new data comes in. Is there a way to do this? Would appreciate any help.

Thanks.

1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 20 Aug 2015 : 15:13:56
1. Default AutoTruncateMaxCount is 1000
2. Default AutoTruncateMinCount is 500
Default AutoTruncateDataset is false

3. Use the RTDatasetTruncateEventHandler or RTGroupDatasetTruncateEventHandler to trap the auto-truncate event . See the manual and the the FetalMonitor and Dynamometer example programs.

4. Then you do NOT want RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL. Use RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL with a ScrollRescaleMargin of something like 0.9. In this case, when the current data reaches the right hand edge of the graph scale, it then shift the graph scale back 90% towards the left edge of the chart.

scrollFrame = new RTScrollFrame(this, currentTemperature1, pTransform1, ChartObj.RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL);
scrollFrame.ScrollRescaleMargin = 0.9;

Make sure you keep enough in the data buffer so that when the RTScrollFrame resets the starting and ending points of the chart, that the chart can fill from the beginning of the chart to where new data is added (10% away from the start of the graph).

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