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 Content

Name Description
Modelica.Clocked.BooleanSignals.TickBasedSources.Step Step Generate step signal of type Boolean
Modelica.Clocked.BooleanSignals.TickBasedSources.Pulse Pulse Generate pulse signal of type Boolean

Modelica.Clocked.BooleanSignals.TickBasedSources.Step 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 BooleanSignals.Interfaces.PartialClockedSO (Block with clocked single output Boolean signals).

Parameters

NameDescription
startTickOutput y = startValue for clock tick < startTick
startValueOutput before startTick

Connectors

NameDescription
yConnector of clocked, Real output signal

Modelica.Clocked.BooleanSignals.TickBasedSources.Pulse 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 BooleanSignals.Interfaces.PartialClockedSO (Block with clocked single output Boolean signals).

Parameters

NameDescription
widthTicksWidth of one pulse in clock ticks
periodTicksNumber of clock ticks for one period
startTickClock tick at which the first pulse starts

Connectors

NameDescription
yConnector of clocked, Real output signal
Automatically generated Thu Oct 1 16:07:37 2020.