blockSensorSource
Source of an integrated sensor value: constant parameter, time table, or connector wired from the diagram - one parameterized block instead of the constant/table/internal-node pattern repeated by each board, cf. requirements.md decision "Refactoring du socle des cartes"
Information
Parameterizable source of a real value, the pattern shared by the integrated sensors of the boards: a constant parameter (k), a time table (table, interpolated and held after its last point), or a connector wired from the diagram (u, shown in this mode only). The value currently driven is y; the mode is chosen by source (Interfaces.InputSource), typically set by the board from its own parameter so that the boards keep their dialog and API. Boolean companion: Internal.Sources.ButtonSource.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Source | |||
| MicroPythonMCU.Interfaces.InputSource | source | MicroPythonMCU.Interfaces.InputSource.Constant | How the value is driven: constant parameter, time table, or connector wired from the diagram |
| Real | k | 0 | Constant value, in the unit of the driven sensor |
| Real[:,2] | table | [0, 0] | Time table of the value (column 1 = time in s, column 2 = value) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Value from the diagram, in the unit of the driven sensor | |
| Modelica.Blocks.Interfaces.RealOutput | y | Value currently driven, in the unit of the driven sensor |