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​
Type | Parameter | Description |
---|---|---|
List | datapoints | A 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​
Type | Parameter | Description |
---|---|---|
List | paths | A list of historical paths. |
List | values | A list of historical values. |
List | timestamps | A list of timestamps. [optional] |
List | qualities | A 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])