Package Modelica.​Clocked.​BooleanSignals.​TimeBasedSources
Package of signal source blocks generating clocked simulation time based Boolean signals

Information

This package provides source components akin to the blocks provided in Modelica.Blocks.Sources, but with the difference that they provide a clocked output signal.

As an effect it is not necessary to use an intermediate Sample block if the output signal is connected to a system that requires a clocked input signal. Therefore, it it can be slightly more convenient to use the blocks provided in this package than to use the blocks offered by Modelica.Blocks.Sources (since one does not need to add an additional Sample block for the transition from a continuous time signal to a clocked signal).

Extends from Modelica.​Icons.​SourcesPackage (Icon for packages containing sources).

Package Contents

NameDescription
PulseGenerate pulse signal of type Boolean
StepGenerate step signal of type Boolean

Block Modelica.​Clocked.​BooleanSignals.​TimeBasedSources.​Step
Generate step signal of type Boolean

Information

The block is similar to the block in Modelica.Blocks.Sources.BooleanStep, but adapted to work in clocked partitions (by internal sampling of the continuous time variable).

The Boolean output y is a step signal:

BooleanStep.png

Example

See model Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.

Extends from Modelica.​Clocked.​BooleanSignals.​Interfaces.​PartialClockedSO (Block with clocked single output Boolean signals).

Parameters

TypeNameDefaultDescription
TimestartTime0Time instant of step start
BooleanstartValuefalseOutput before startTime

Connectors

TypeNameDescription
output BooleanOutputyConnector of clocked, Real output signal

Block Modelica.​Clocked.​BooleanSignals.​TimeBasedSources.​Pulse
Generate pulse signal of type Boolean

Information

The block is similar to the block in Modelica.Blocks.Sources.BooleanPulse, but adapted to work in clocked partitions (by internal sampling of the continuous time variable).

The Boolean output y is a pulse signal:

Pulse.png

Example

See model Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.

Extends from Modelica.​Clocked.​BooleanSignals.​Interfaces.​PartialClockedSO (Block with clocked single output Boolean signals).

Parameters

TypeNameDefaultDescription
Realwidth50Width of pulse in % of period
Timeperiod Time for one period
TimestartTime0Time instant of first pulse

Connectors

TypeNameDescription
output BooleanOutputyConnector of clocked, Real output signal