Applies To: 

Summary: 
Question: I have used the automatic scaling mode with TrnSetScale function and the scales seem to have been set arbitrarily. Can you explain how it works? 
Solution:  
The parameters of TrnSetScale function are
:
If you would like to set the automatic scales for an individual pen, it works as follows: The minimum and maximum values of currently displayed trend data points are determined ( Note that <na> and <gated> values are excluded when the minimum and maximum values are determined). Say, minVal and maxVal are minimum and maximum values, respectively. We do the following calculations to get the Full and Zero scales. diff = maxVal  minVal If you select all pens then the minimum and maximum values of all pens that are currently displayed are calculated. If we call these values minValOfAllPens and maxValOfAllPens then Full and Zero scales of each pen are calculated: diff = maxValofAllPens 
minValOfAllPens Once the Full and Zero scales are calculated the trend display is refreshed to display the new scale values See Q1477 for problems with this function. 
Keywords: 
Related Links
Attachments