Pulse
A periodic rectangular pulse.
- signal
- Modelica Standard Library
- 1 port
- 4 parameters
pulseLibrarySourcesDescription
A periodic rectangular wave switching between Amplitude and 0 (the Modelica library pulse). From Start time on, each period starts high for Duty cycle · Period, then stays at 0 for the rest.
Example
Signal sources The signal sources side by side: step, ramp, sine, pulse, and clock, plus a constant.
Ports
Outputs 1
-
y
Output signal: Amplitude or 0.
Parameters
-
Amplitude
amplitude1Value during the high part of each period.
-
Period
period1 s≥ 0.0001
Length of one period, in seconds. At least 0.0001 s.
-
Duty cycle
width0.50.001 to 1
Duty cycle: the high fraction of each period, from 0.001 to 1. 1 keeps the output at Amplitude.
-
Start time
startTime0 s≥ 0
Time the first period starts, in seconds. 0 or more; the output is 0 before it.
Equations
y = 0 for time < startTime y = amplitude if mod(time − startTime, period) < width · period, else 0
Implementation
Modelica.Blocks.Sources.PulseAssumptions and limitations
- The low level is always 0.
Tips
- For a Boolean pulse train, use Boolean pulse instead.
Used in
These larger examples use it too. Open them from Examples in the app.
- Data center cooling control
See also
Select a block in Gradara and press F1 to open its page offline.