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​
| 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​
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​
| Type | Parameter | Description |
|---|---|---|
| List | datapoints | A 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)