Boolean step

False before the step time, true after.

  • Boolean
  • Modelica Standard Library
  • 1 port
  • 1 parameter
BlockBoolean stepKindbooleanStepLibraryLogic

Description

Outputs false before the step time and true from then on. Use it to enable part of a model partway through a run.

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 step 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 constantTriggered samplerRising edge

Ports

Outputs 1

  • y

    False for t < startTime, true for t ≥ startTime.

Parameters

  • Step timestartTime0.5 s

    ≥ 0

    Time of the step, in seconds, 0 or more. At 0 the output is true from the start.

Equations

Modelica
y = t ≥ startTime

Implementation

Modelica Standard Library 4.1.0Modelica.Blocks.Sources.BooleanStep
MSL documentation

Tips

  • For a true-to-false step, follow it with NOT.

Used in

These larger examples use it too. Open them from Examples in the app.

  • Data center cooling control

See also

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