LoadHistoricalData method
Allows user-written code to supply historical data to the trend object in response to the HistoricalDataRequested event. If the method return value is True, the trend is still accepting data for the transaction. If the method return value is False, the trend is no longer accepting data for the specified transaction.
Syntax
Trend
.LoadHistoricalData
(TransactionId
, SampleArray
, [MoreData
]) As Boolean
])where
Trend
- is the name of a Trend object (such as trend1) or an expression that evaluates to a Trend object.TransactionId
- is a parameter of the type Long that specifies the value specified by the HistoricalDataRequested eventSampleArray
- is a parameter of the type Variant that represents a two dimensional array containing the historical data.MoreData -
is an optional parameter of the type Boolean that indicates if the method will be called again with more data before the transaction is complete. If set to True, the method will be called again during the transaction.Remarks
The sample array is a two-dimensional array of variants. Each row contains a sample. The display has five columns:
- The first column contains the index of the pen.
- The second column contains the time stamps of the samples.
- The third column contains a value specifying the number of milliseconds offset from the sample time.
- The fourth column contains the value of the sample.
- The fifth column is for flags. To indicate begin and end markers, place a "B" or "E" in the fifth column.
Provide Feedback