oPoints.AddPoints vTimes, vValues, 0, 0
|vTimes||(Variant) Single time value or time array in ascending order. |
The time is expected according to setting the PmgTrendViewer.TimeSetType property, i.e. "local time", "standard time" or "daylight-saving time".
|vValues||(Variant) Single numeric (real) value or array of these values.|
|vAttrs||(Variant) Not used, it is necessary to set the value 0.|
|nStyle||(Long) The style how to add a data point (an array of points) into the tvPoints buffer:|
0 - Add a point (an array of points) at the end of the buffer
1 - Delete the content of the buffer and add a point (an array of points)
4 - If the time-range of points in the buffer and the time-range (or only one time) of newly added points overlaps, then keep all points in the buffer and add from new ones only those who don't overlap.
5 - If the time of some added points corresponds with the time of existing points, then the existing points will be kept and these new ones won't be added, others will be added on the corresponding time locations in the buffer of points.
var oTView = pMe;
var oPoints = oTView.Trends("t1").Points;
var vTimes, vValues;
oTView.TimeSetType = 1; //Time will be entered as: 1 = "local time", 2 = "standard time" even in the daylight-saving season
//vTimes = ...
//vValues = ...
oPoints.AddPoints(vTimes, vValues, 0, 0);