Latitude Property

General info

Label

Latitude

Description

The north-south position of a point on the Earth's surface.

Data type

Double

Min value

-90

Max value

90

Type

Regular

Code

44

Symbolic name

MODEL_PROP_LATITUDE

Lua access code

syslib.model.properties.Latitude

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_HAS_LOLIMIT The property has a low limit.
PROP_HAS_HILIMIT The property has a high limit.
PROP_NULLABLE This Property can have no value.

Examples

Read from or write to the Latitude property.

  • Lua

  • C#

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

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