Boolean step
False before the step time, true after.
- Boolean
- Modelica Standard Library
- 1 port
- 1 parameter
booleanStepLibraryLogicDescription
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
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 time
startTime0.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.0
MSL documentation Modelica.Blocks.Sources.BooleanStepTips
- 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.