VantagePointDisplay.com Vantage Point Online Reference
Search:
Contents
Display Legacy Contents

IndexBookmarkPrint

Home > Vantage Point Server > Configuration Files > Legacy INI Configuration > Calculated Points > Sample Calculated Points

Sample Calculated Points

In the following samples, the calculated points use data points represented as P1, P2, and P3. These data points must be defined within a Point Server section of the configuration file in order for the Display Server to run these calculations.

The sample calculated point below converts data from liters to kiloliters (Equation = P1/1000).
  • The calculation is performed every hour (Update IntSec = 3,600 seconds).

  • The results are stored every hour (Since Number of Entries is Auto, Interval is Hourly).

  • The last result in the interval is recorded (Since Number of Entries is Auto, Value Type is Instant).

  • The number of entries stored in history is set to automatic.
1 <CalcPoints>                                                                                                                                                                      
2  
3      '                                    Update    Num of     Value
4      'Point Name      Description         IntSec    Entries    Type     Interval    Multiplier    Rollover    Equation
5      '------------    ----------------    ------    -------    -----    --------    ----------    --------    --------
6       ConvertUnits    "Covert L to KL"    3600      auto       -        -           -             -           "P1/1000"
7  
8 </CalcPoints>

The sample calculated point below converts a temperature reading from Celsius to Fahrenheit (Equation = P1*9/5+32).

  • The calculation is performed every 30 minutes (Update IntSec= 3,600 seconds).

  • The results are stored every 30 minutes (Interval is Hour and Multiplier is 2).

  • The last result in the interval is recorded (Value Type is Instant).

  • The number of entries stored in history is set to automatic.
1 <CalcPoints>                                                                                                                                                                    
2  
3      '                                    Update    Num of     Value
4      'Point Name      Description         IntSec    Entries    Type     Interval    Multiplier    Rollover    Equation
5      '------------    ----------------    ------    -------    -----    --------    ----------    --------    --------
6       ConvertTemp     "Covert C to F"     1800      auto       inst     hour        2             -           "P1*9/5+32"
7  
8 </CalcPoints>

The following sample calculated point determines the single highest and lowest temperatures each day between 3 sensors.


The sample calculated point below records an entry each time a room's humidity falls out of the desired range. X represents the maximum desired humidity and y represents the lowest desired humidity (Equation = P1 > x or P1 <y). The value returned would be True or False.
  • The calculation is performed every 5 minutes (Update IntSec = 300 seconds).

  • A result is stored every 15 minutes (Interval is Hour and Multiplier is 4).

  • The maximum value for the interval is stored (Value Type = Max).

  • The number of entries stored is set to automatic.
1 <CalcPoints>                                                                                                                                                                    
2  
3      '                                          Update    Num of     Value
4      'Point Name      Description               IntSec    Entries    Type     Interval    Multiplier    Rollover    Equation
5      '------------    ----------------          ------    -------    -----    --------    ----------    --------    ----------------------
6       BadHumidity     "Server Room Humidity"    300       auto       max      hour        4             -           "(P1 > x) or (P1 < y)"
7  
8 </CalcPoints>



Return to Parent Article: Calculated Points



See also