Skip to content

model.getGlobalVariableDetails

model.getGlobalVariableDetails(index)

Returns details about a Global Variable, but not values

Parameters

Name Req Type Description
index yes integer zero based global variable index, use 0 for GV1, 8 for GV9

Returns

NameTypeDescription
-tabledetails of the global variable:
FieldTypeDescription
namestringglobal variable name
minnumberminimum value
maxnumbermaximum value
precnumberprecision
unitnumberunit
popupbooleanshow popup - if exists

Availability

  • Since: 2.11.0
  • Radio support: all

Source

radio/src/lua/api_model.cpp