Altitude Property

General info

Label

Altitude

Description

The height above sea level of the location.

Data type

Double

Type

Regular

Code

46

Symbolic name

MODEL_PROP_ALTITUDE

Lua access code

syslib.model.properties.Altitude

Available since

1.0

Parent properties

Location

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_NULLABLE This Property can have no value.

Examples

Read from or write to the Altitude property.

  • Lua

  • C#

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

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