Boolean constant

Constant true output.

  • Boolean
  • Modelica Standard Library
  • 1 port
BlockBoolean constantKindbooleanConstantLibraryLogic

Description

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
In Gradara, select a Boolean constant block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

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.0Modelica.Blocks.Sources.BooleanConstant
MSL documentation

Tips

  • For a constant false, follow it with NOT.

See also

Select a block in Gradara and press F1 to open its page offline.