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
 Real-Time Graphics Tools for .Net (VB and C#)
 ScrollScaleModeX for RTAutoScrollGraph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soundar

51 Posts

Posted - 28 Oct 2012 :  19:56:12  Show Profile  Reply with Quote
Does rtAutoScrollGraph support ScrollScaleModeX = ChartObj.RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL?

When I try this I get an exception.

Thanks.

Edited by - soundar on 28 Oct 2012 19:56:53

quinncurtis

1586 Posts

Posted - 29 Oct 2012 :  09:14:02  Show Profile  Reply with Quote
Because that mode scales to the current x-values in the data buffer of the related RTProcessVar, you have to have least one value in the buffer before you can use that mode, else there is nothing to autoscale against. So start the RTScrollFrame with RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL, and then after couple of samples are taken change to RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL.

// In graph building method
scrollFrame = new RTScrollFrame(this, currentTemperature1, pTransform1, ChartObj.RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL);

.
.
.
// In update method
if (counter == 2)
scrollFrame.ScrollScaleModeX = ChartObj.RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07