Skip to main content
Version: 8.3 Beta 🚧

system.historian.queryValues

This function is used in Python Scripting.

Description​

Queries values for the specified Historian.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax #1​

system.historian.queryValues(definitions, filter)

Parameters​

TypeParameterDescription
listdefinitionsA list of historical definitions to query values for.
Dictionary[String, Any]filterFilters to include/exclude value data within the returned query results, such as quality and timestamp.

Returns​

Dataset - A dataset representing the historian values for the specified historical paths.

Scope​

Gateway, Vision Client, Perspective Session

Syntax #2​

system.historian.queryValues(paths, startDate[, endDate][, columnNames][, returnFormat][, limitMode][, limit][, aggregates][, fillModes][, includeBounds][, includeObservations])

Parameters​

TypeParameterDescription
ListpathsA list of historical paths to query values for.
DatestartDateA start time to query values for.
DateendDateAn end time to query values for. [optional]
ListcolumnNamesA list of alias column names for the returned dataset. [optional]
StringreturnFormatThe desired return format for the query. [optional]
StringlimitModeThe limit mode to apply to the query. [optional]
IntegerlimitThe maximum number of results to return. [optional]
ListaggregatesA list of aggregate functions to apply to the query. [optional]
ListfillModesA list of fill modes to apply to the query. [optional]
BooleanincludeBoundsWhether to include the bounds in the query results. [optional]
BooleanincludeObservationsWhether to include observed values in the query results. [optional]

Returns​

Dataset - A dataset representing the historian values for the specified historical paths.

Scope​

Gateway, Vision Client, Perspective Session