Pulse
A periodic rectangular pulse.
- signal
- Gradara equations
- 1 port
- 4 parameters
pulseLibrarySourcesDescription
A periodic rectangular wave switching between Amplitude and 0. Each period starts high for Duty cycle · Period, then stays at 0 for the rest.
Start time sets where the periods are aligned: a period begins at Start time, and at every whole multiple of Period before and after it.
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.5≥ 0
Duty cycle: the high fraction of each period, from 0 to 1. 0 keeps the output at 0; 1 or more keeps it at Amplitude.
-
Start time
startTime0 s≥ 0
Alignment time of the periods, in seconds. 0 or more.
Equations
y = amplitude if mod(time − startTime, period) < width · period y = 0 otherwise
Implementation
y = if mod(time - startTime + period, period) < width*period then amplitude else 0;
Assumptions and limitations
- Start time only shifts the wave; it does not hold the output at 0 before it. The pulse is already running before Start time.
- 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.