blockPulse
Generates a pulse signal.
Extends from ModelicaDEVS.Templates.DSource (DEVS source block).
Information
The Pulse BlockParameters:
| offset | pulse ground value |
| a | pulse amplitude |
| ts | pulse start time |
| tu | duration of pulse |
Description:
This block generates a simple pulse signal.
Note that it is possible to assign a negative value to the amplitude, such that the pulse signal is rather an indentation than a bulge respective to the ground value (mirrored at the straight line y=offset).
Generated Events (QSS1/QSS2/QSS3 mode):
| yVal[1] | yVal[2] | yVal[3] | |
| t=0 | offset | 0 | 0 |
| t=ts | offset+a | 0 | 0 |
| t=ts+tu | offset | 0 | 0 |
![]() |
Parameter setting: |
offset=0.5 a=1 ts=1 tu=1 |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | method (from DSource) | world.qss | Use QSS1, QSS2 or QSS3 |
| Real | offset | 0 | Pulse start value |
| Real | a | 1 | Pulse amplitude |
| Real | ts | 1 | Time pulse goes up |
| Real | tu | 2 | Time pulse stays up |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| ModelicaDEVS.Templates.DiscreteOutPort | outPort (from DSource) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| ModelicaDEVS.Miscellaneous.worldModel | world (from DSource) |
