ItemValue Property

General info

Label

Value

Description

The current value of the object.

Data type

Variant

Type

Regular

Code

86

Symbolic name

MODEL_PROP_ITEMVALUE

Lua access code

syslib.model.properties.ItemValue

Available since

1.0

Attributes

Name Tooltip
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_DYNAMIC The property can be connected to IoItems.
PROP_DATA_VQT This Property has VQT data (Value-Quality-Timestamp).

Examples

Read from or write to the ItemValue property.

  • Lua

  • C#

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

-- Write to the ItemValue
syslib.setvalue("<OBJECT FULL PATH>.ItemValue", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the ItemValue
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.ItemValue"));
// Write to the ItemValue
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.ItemValue"));