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#)
 MaxDisplayHistory question

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 - 28 Mar 2009 : 21:23:30
Does RTScrollFrame.MaxDisplayHistory limit apply to each plot attached to an RTScrollFrame or the total number of plots?

For example, I have a 7 plots attached to a single frame, using
AddProcessVar().

I have MaxDisplayHistory set to 100,000

If MaxDisplayHistory applies to the total then I will be limited to approx 14000 per plot. If it does not, then I can have potentially 700,00 points if all plots are displayed.
3   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 30 Mar 2009 : 14:33:38
We don't see anything obviously wrong. It seems to be based on our examples.
soundar Posted - 30 Mar 2009 : 13:38:16
I am using it in a time-based scrolling graph when the user stops data acquisition and graph stops scrolling. I then need a way so user can zoom into areas of interest.Based on one of the examples for zooming, I do the following when the user clicks the Stop button:

' Change to display of all collected data
----> zoom mode on
_graphFrame.ScrollScaleModeX = ChartObj.RT_AUTOSCALE_X_MINMAX

_graphFrame.MaxDisplayHistory = 1000000 'some arbitrarily high limit, I can count how many points are there, but decided on this a temporary approach to save CPU cycles.

' Update first, to display all historical information, then disable to allow for zooming.
Me.UpdateDraw()

_graphFrame.ChartObjEnable = ChartObj.OBJECT_DISABLE
' Turn on zooming
_zoomObj.SetEnable(True)


->when the user restarts data acquisition and graphing
---->zoom mode off
' Turn off zooming
_zoomObj.SetEnable(False)
' Re-establish scroll mode
_graphFrame.ScrollScaleModeX = ChartObj.RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL
_graphFrame.ChartObjEnable = ChartObj.OBJECT_ENABLE

' Render graph
Me.UpdateDraw()


Is what I am doing correct/necessary? Is there a better way to do it?
quinncurtis Posted - 30 Mar 2009 : 09:20:30
When used, the MaxDisplayHistory property is applied to each channel individually. The MaxDisplayHistory is not used in most scrolling modes though. It is used when you specify that the x-axis time stamp mode is NOT monotonic, i.e. NOT always increasing. This is never the case with a time-based x-axis, only with numeric-based x-axis.


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