FORMULA_PARAM
This element creates a non modifiable parameter which value is computed using a mathematical formula that can reference other model elements.
Attributes brief detailed show all inherited
| Name | Description | ||||
|---|---|---|---|---|---|
| formula | Mathematical formula to compute the parameter. See Math Formulas | ||||
| Events | |||||
| value_changed | the event is triggered anytime the value of the object has changed | ||||
| Common attributes | |||||
| id | Identifier of the element | ||||
See PARAM. The FORMULA_PARAM attribute does not have the persistent attribute since its value is computed automatically.
Examples
The code below creates a parameter ("f_param") which is computed from the value of another ("demo_param"):
- <!-- create a param and a formula param -->
- <PARAM id="demo_param" min="-10" max="10" default="0" />
- <FORMULA_PARAM id="f_param" formula="cos(demo_param)" />
- <!-- display control -->
- <ROW spacing="15">
- <PARAM_TEXT_CONTROL param_id="demo_param" content="demo_param: {value}" />
- <PARAM_TEXT param_id="f_param" content="f_param: {value}" />
- </ROW>

See more info on Math Formulas
Comments
Please, authorize to view and post comments.