Provides the date and time of the last (most recent) available measurement value from a HistoryBase ring buffer.
Syntax
RingBufferLastTime(HistoryBaseFile [ , Machine = "" ])
The syntax of the RingBufferLastTime function consists of the following parts:
Part |
Description |
---|---|
HistoryBaseFile |
String with the path of the ring buffer file to be read. Permitted data structures are Scalar value. Supported data types are String (file name). |
Machine |
Name of a computer in the network on which the specified ring buffer file is already being used by a HistoryBase component. This argument can also be an empty text. In this case, the HistoryBase instance is searched for or instantiated on the executing system. Permitted data structures are Scalar value. Supported data types are String. If this argument is omitted, it will be set to the default value "" . |
Remarks
The result always has the data structure Scalar value.
Weisang HistoryBase version 2.4 or higher must be installed on the executing system and, if applicable, on the system specified in Machine.
If an argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.
Available in
FlexPro View, Basic, Professional, Developer Suite
Examples
RingBufferLastTime("C:\RingBuffer.rbf", "RemoteMachine") |