The simulator.findDataref()
method locates a dataref by name, returning an object that can then be used to get or set the dataref.
name
name
: The name of the dataref, e.g. sim/flightmodel/position/latitude
If the dataref exists, a Dataref
object is returned.
> latitude_dr = "sim/flightmodel/position/latitude"
DataRef
> latitude_dr.value
28
20523452
Dataref
object, returned by this functionXPLMFindDataRef
is the C-API used by this function.find_dataref
functionglobalProperty
, and when to use it