HistoryExporterConfiguration Property

General info

Label

Tag Configuration

Description

Configuration of the tag transfer of the history exporter object.

Data type

String

Default value

"{\"meta\":{\"id\":\"urn:id:33:3\"}}"

Type

TableSchemaBound

Code

4116

Symbolic name

MODEL_PROP_HISTORYEXPORTERCONFIGURATION

Lua access code

syslib.model.properties.HistoryExporterConfiguration

Available since

1.40

Parent properties

ExporterConfiguration

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.

Schema Definition

Name: HistoryExporterConfiguration

Description: Configuration of the tag transfer of the history transporter object

Columns
Column Data Type Nullable Unique Default Min Max Description
ObjectPath String false false The object path of the historizing inmation object
TargetID String true false The ID in the destination historian system in case the item is used with a history sink function

Examples

Read from or write to the HistoryExporterConfiguration property.

  • Lua

  • C#

-- Read from the HistoryExporterConfiguration
syslib.getvalue("<OBJECT FULL PATH>.ExporterConfiguration.HistoryExporterConfiguration")

-- Write to the HistoryExporterConfiguration
syslib.setvalue("<OBJECT FULL PATH>.ExporterConfiguration.HistoryExporterConfiguration", '{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}')
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the HistoryExporterConfiguration
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.ExporterConfiguration.HistoryExporterConfiguration"));
// Write to the HistoryExporterConfiguration
Result result = sli.WriteValue(sc, new WriteItem('{"meta":{"id":"urn:id:22:2"},"data":{"Input":[1.0,2.0],"Value":["v1","v2"]}}', "<OBJECT FULL PATH>.ExporterConfiguration.HistoryExporterConfiguration"));