Criticality Property

General info

Label

Criticality

Description

Criticality.

Data type

Int32

Min value

0

Max value

1000000

Type

Regular

Code

12554

Symbolic name

MODEL_PROP_CRITICALITY

Lua access code

syslib.model.properties.Criticality

Available since

1.76

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.
PROP_HAS_LOLIMIT The property has a low limit.
PROP_HAS_HILIMIT The property has a high limit.

Examples

Read from or write to the Criticality property.

  • Lua

  • C#

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

-- Write to the Criticality
syslib.setvalue("<OBJECT FULL PATH>.Criticality", 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 Criticality
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.Criticality"));
// Write to the Criticality
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.Criticality"));