NewData method

Adds new data to a trend chart.
This method applies only when the ChartMode property is set to rstManual. When the ChartMode property is set to rstAutomatic, the Trend object itself updates the chart data.
Syntax
Trend
.
NewData
(
DateTime, TimeInterval, DataArray
)
where
Trend
- is the name of a Trend object (such as trend1) or an expression that evaluates to a Trend object.
DateTime
- is a parameter of the type Date that specifies the date and time for the new data. If the data is current, set this field to the current date and time. This field is useful for graphing stored data.
TimeInterval
- is a parameter of the type Long. If the array is 1D, this is the millisecond part of the time for the reading. If the array is 2D, this is the interval between readings, in milliseconds.
DataArray
- is a parameter of the type Variant. It is the actual data. If the array is 1D, it contains one reading for each pen. If the array is 2D, it contains successive readings spaced a specified number of interval milliseconds apart.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal