I am trying to change the scaling range for each trace using VBA [ in PI ProcessBook ]. I do not see a member or method to do that in VBA. Is there one?
The SetTraceScale method of the Trend class sets the upper and lower limits of the Y-axis for the CurrentTrace (which you can set with the Current Trace property of the Trend class), or for all traces if MultipleScales property of the Trend class is False.
LowerLimit (Variant): Specifies the lower limit for the Trend.
UpperLimit (Variant): Specifies the upper limit for the Trend.
The return type is boolean. Returns TRUE if successful.
The values for the arguments are the same as for the Trend.ScaleMin and Trend.ScaleMax properties. If Trend.MultipleScales is FALSE, all traces are affected; however, the Database type cannot be used if any of the traces' data originates from a non-PI source. If MultipleScales is TRUE, only the current trace is affected; however the Database type cannot be used if the data for the current trace originates from a non-PI source.
Thanks Eugene. I will try the SetTraceScale method
Retrieving data ...