Package of signal source blocks generating clocked ticked/sample based Real signals
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 |
---|---|
Step | Generate step signal of type Real based on counted clock ticks |
Ramp | Generate ramp signal based on counted clock ticks |
Sine | Generate sine signal |
Generate step signal of type Real based on counted clock ticks
The Real output y is a step signal. The signal is defined in terms of clock ticks instead of simulation time:
Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).
Name | Description |
---|---|
height | Height of step |
offset | Offset of output signal y |
startTick | Output y = offset for clock tick < startTick |
Name | Description |
---|---|
y | Connector of clocked, Real output signal |
Generate ramp signal based on counted clock ticks
The Real output y is a ramp signal. The signal is defined in terms of clock ticks instead of simulation time:
Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).
Name | Description |
---|---|
height | Height of ramps |
durationTicks | Durations of ramp in number of clock ticks |
offset | Offset of output signal |
startTick | Output y = offset for clock tick < startTick |
Name | Description |
---|---|
y | Connector of clocked, Real output signal |
Generate sine signal
The Real output y is a sine signal. The signal is defined in terms of clock ticks instead of simulation time:
Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).
Name | Description |
---|---|
amplitude | Amplitude of sine wave |
offset | Offset of output signal |
periodTicks | Number of clock ticks for one period |
periodOffset | Number of periods the sine signal is offset |
startTick | Output = offset for clock tick < startTick |
Name | Description |
---|---|
y | Connector of clocked, Real output signal |