Skip to main content
Version: 8.3 Beta 🚧

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(datapoints)

Parameters​

TypeParameterDescription
ListdatapointsA list of data points.

Returns​

A list of qualified values. The quality code will indicate success or failure. See Scripting Object Reference.

Scope​

Gateway, Vision Client, Perspective Session

Syntax #2​

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​

A list of qualified values. The quality code will indicate success or failure. See Scripting Object Reference.

Scope​

Gateway, Vision Client, Perspective Session

Example​

## DataPoint can be imported and used for constructing

datapoint = DataPoint("hprov:test:/sys:myGateway:/prov:default:/tag:me", 42, system.date.now(), 192)

system.historian.storeDataPoints([datapoint])