blockButtonSource

Source of a button state: constant state, time table, or connector wired from the diagram - Boolean companion of Internal.Sources.SensorSource (the table holds 0 released / 1 pressed)

Information

Parameterizable source of a button state, the pattern shared by the buttons of the boards: a constant state (pressed), a time table (table, 0 released / 1 pressed, converted to boolean at 0.5), or a connector wired from the diagram (u, shown in this mode only). The state currently driven is y. Real companion: Internal.Sources.SensorSource.

Parameters

TypeNameDefaultDescription
Source
MicroPythonMCU.Interfaces.InputSourcesourceMicroPythonMCU.Interfaces.InputSource.ConnectorHow the button is driven: connector wired from the diagram, time table, or constant state
BooleanpressedfalseState in constant mode (true = pressed)
Real[:,2]table[0, 0]Time table of the button (column 1 = time in s, column 2 = 0 released / 1 pressed)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputuState from the diagram (true = pressed)
Modelica.Blocks.Interfaces.BooleanOutputyState currently driven (true = pressed)