Boolean constant
Constant true output.
- Boolean
- Modelica Standard Library
- 1 port
booleanConstantLibraryLogicDescription
Outputs true for the whole run. Use it to hold an enable or select input on.
Example
Latch, timer, and sampler Start and stop buttons set and reset a flip-flop, which times the run, gates a signal, and samples the start time.
EnableStartStopEnabled startStart edgeStop edgeRunningRun timeSine 1 Hz0Gated sineClockStart time
Also in this example:ConstantSine waveClockANDSwitch (logic)RS flip-flopTimerBoolean stepTriggered samplerRising edge
Ports
Outputs 1
-
y
Always true.
Equations
Modelica
y = true
Implementation
Modelica Standard Library 4.1.0
MSL documentation Modelica.Blocks.Sources.BooleanConstantTips
- For a constant false, follow it with NOT.
See also
Select a block in Gradara and press F1 to open its page offline.