TimeOffset - property of object tvPoints

The time of each point from the buffer with points of the tvPoints object is increased by the value set in this property (either read from the trends server or 'manually' defined by the AddPoints method) and the trend progress is then drawn in these calculated time intervals (it is possible to move the whole curve).
TimeOffset As Double
oPoints.TimeOffset = n
Property access for read and write. Preset value of the property is 0.
See also:
The definition of the curve only by relative time intervals, displaying the curve in the real time is achieved by the offset definition in TimeOffset.
Dim vTimes, vValues, vAttrs, oPoints
vTimes = Array(1/24, 2/24,3/24, 4/24, 5/24, 6/24) 'The time of the curve points is 1 hour, 2 hours, 3 hours, 4 hours, 5 hours, 6 hours
vValues = Array(60, 40,70, 50, 10, 80)
oTView.TimeSetType = 1
Set oPoints = oTView.Trends("t1").Points
If Not oPoints Is Nothing Then
  oPoints.AddPoints vTimes, vValues, vAttrs, 0
  oPoints.TimeOffset = Now - 1 'Moving the whole curve into the current time minus one day.
End If
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice