RuntimeStart Property

General info

Label

Runtime Start

Tooltip

Timestamp of runtime start

Data type

DateTime

Type

Regular

Code

64

Symbolic name

MODEL_PROP_RUNTIMESTART

Available since

1.6.0.999

Parent properties

RuntimeInformation

Attributes

Name Tooltip
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs
PROP_VOLATILE The property exists during runtime of the service only and is not saved to the image

Examples

Read from or write to the RuntimeStart property.

  • Lua

  • C#

-- Read from the RuntimeStart
inmation.getvalue("/System/Core/obj.RuntimeStart")

-- Write to the RuntimeStart
inmation.setvalue("/System/Core/obj.RuntimeStart", inmation.currenttime())
string path = "/System/Core/obj.RuntimeStart";
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the RuntimeStart
Result result = sli.ReadValue(sc, new ReadItem(path));
// Write to the RuntimeStart
Result result = sli.WriteValue(sc, new WriteItem(DateTime.Now, path));