Skip to main content
Version: 8.3

system.historian.storeDataPoints

This function is used in Python Scripting.

Description​

Store a list of data points to the specified historian.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax #1​

system.historian.storeDataPoints(paths, values, [timestamps], [qualities])

Parameters​

TypeParameterDescription
ListpathsA list of historical paths.
ListvaluesA list of historical values.
ListtimestampsA list of timestamps. [optional]
ListqualitiesA list of qualities. [optional]

Returns​

List - A list of QualityCode objects. The quality code will indicate success or failure.

Scope​

Gateway, Vision Client, Perspective Session

Syntax #2​

system.historian.storeDataPoints(datapoints)

Parameters​

TypeParameterDescription
ListdatapointsA list of data point java objects.

Returns​

List - A list of QualityCode objects. The quality code will indicate success or failure.

Scope​

Gateway, Vision Client, Perspective Session

Examples​

Syntax #1 Code Snippet
paths = ["histprov:mariadb:/sys:gatewayName1:/prov:default:/tag:test_a"]
values = [1]
timestamps = [system.date.now()]
qualities = [192]

system.historian.storeDataPoints(paths, values, timestamps, qualities)