T O P I C R E V I E W |
soundar |
Posted - 28 Oct 2012 : 19:56:12 Does rtAutoScrollGraph support ScrollScaleModeX = ChartObj.RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL?
When I try this I get an exception.
Thanks. |
1 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 29 Oct 2012 : 09:14:02 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; |
|
|