simulator.findDataref() Method

The simulator.findDataref() method locates a dataref by name, returning an object that can then be used to get or set the dataref.

Syntax

simulator.findDataref(name)

Parameters

Return value

If the dataref exists, a Dataref object is returned.

Example

> latitude_dr = simulator.findDataref("sim/flightmodel/position/latitude")
DataRef{ name: "sim/flightmodel/position/latitude" }
> latitude_dr.value
28.20523452

References