FloatSetting#
This is the class for a setting of type float for a device configuration. This class inherits from Setting.
constructor FloatSetting(id: str, caption: str, default_value: float, is_visible: bool = 'true')#
Initializes a new instance of the FloatSetting class.
Parameters#
| Name | Description |
|---|---|
| id | The unique identifier for the setting. Must be unique within the settings of a device. |
| caption | The caption of the setting which is displayed in the Measmatic decive manager. |
| default_value | The default value of the setting. |
| is_visible | A value indicating whether the setting is shown in the user interface. Default: true |
property default_value#
Gets or sets the default value of the setting.
Returns#
| Type | Description |
|---|---|
| float | The default value of the setting. |
property value#
Gets or sets the current value of the setting.
Returns#
| Type | Description |
|---|---|
| float | The current value of the setting. |