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

TypeNameDefaultDescription
Source
MicroPythonMCU.Interfaces.InputSourcesourceMicroPythonMCU.Interfaces.InputSource.ConstantHow the value is driven: constant parameter, time table, or connector wired from the diagram
Realk0Constant 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

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuValue from the diagram, in the unit of the driven sensor
Modelica.Blocks.Interfaces.RealOutputyValue currently driven, in the unit of the driven sensor