Package Modelica.Clocked.BooleanSignals.TickBasedSources
This package provides source components akin to the blocks provided in Modelica.Blocks.Sources, but with the difference that they provide
Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).
| Name | Description |
|---|---|
Pulse | Generate pulse signal of type Boolean |
Step | Generate step signal of type Boolean |
Block Modelica.Clocked.BooleanSignals.TickBasedSources.Step
The Boolean output y is a step signal. The signal is defined in terms of clock ticks instead of simulation time:
See model Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.
Extends from Modelica.Clocked.BooleanSignals.Interfaces.PartialClockedSO (Block with clocked single output Boolean signals).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | startTick | 0 | Output y = startValue for clock tick < startTick |
Boolean | startValue | false | Output before startTick |
| Type | Name | Description |
|---|---|---|
output BooleanOutput | y | Connector of clocked, Real output signal |
Block Modelica.Clocked.BooleanSignals.TickBasedSources.Pulse
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:
See model Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.
Extends from Modelica.Clocked.BooleanSignals.Interfaces.PartialClockedSO (Block with clocked single output Boolean signals).
| Type | Name | Default | Description |
|---|---|---|---|
Integer | widthTicks | 1 | Width of one pulse in clock ticks |
Integer | periodTicks | 2 | Number of clock ticks for one period |
Integer | startTick | 1 | Clock tick at which the first pulse starts |
| Type | Name | Description |
|---|---|---|
output BooleanOutput | y | Connector of clocked, Real output signal |