Package Modelica.​Clocked.​BooleanSignals.​TickBasedSources
Package of signal source blocks generating clocked tick/sample 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

  1. a clocked output signal and
  2. are parametrized in terms of clock ticks rather than simulation time.

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.​TickBasedSources.​Step
Generate step signal of type Boolean

Information

The Boolean output y is a step signal. The signal is defined in terms of clock ticks instead of simulation time:

TickBasedSources_Step

Example

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

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

Parameters

TypeNameDefaultDescription
IntegerstartTick0Output y = startValue for clock tick < startTick
BooleanstartValuefalseOutput before startTick

Connectors

TypeNameDescription
output BooleanOutputyConnector of clocked, Real output signal

Block Modelica.​Clocked.​BooleanSignals.​TickBasedSources.​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:

TickBasedSources_Pulse.png

Example

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

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

Parameters

TypeNameDefaultDescription
IntegerwidthTicks1Width of one pulse in clock ticks
IntegerperiodTicks2Number of clock ticks for one period
IntegerstartTick1Clock tick at which the first pulse starts

Connectors

TypeNameDescription
output BooleanOutputyConnector of clocked, Real output signal