FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder

FlexPro Documentation 2025

HistoryBaseLastTime

Provides the date and time of the last (most recent) available measurement value from a HistoryBase ring buffer.

Syntax

HistoryBaseLastTime(HistoryBaseFile, [ TraceGroup = "" ] [ , Machine = "" ])

 

The syntax of the HistoryBaseLastTime function consists of the following parts:

Part

Description

HistoryBaseFile

Path to the ring buffer file to be read.

Permitted data structures are Scalar value. Supported data types are String (file name).

TraceGroup

Name of the trace group whose time trace is to be used as a basis. If the group is not specified, the last time of all groups will be returned.

Permitted data structures are Scalar value. Supported data types are String.

If this argument is omitted, it will be set to the default value "" .

Machine

Name of the computer on the network on which the HistoryBase ring buffer server is running. 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 4 or higher has to be installed on the executing system and, if applicable, on the system specified by 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

HistoryBaseLastTime("C:\HistoryBase.hbf", "RemoteMachine")


See Also

HistoryBaseRead Function

HistoryBaseReadTime Function

HistoryBaseFirstTime Function

IsTimeInHistoryBase Function