Pulse

A periodic rectangular pulse.

  • signal
  • Modelica Standard Library
  • 1 port
  • 4 parameters
BlockPulseKindpulseLibrarySources

Description

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.

ConstantStepRampSinePulseClock
In Gradara, select a Pulse block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:ConstantStepRampSine waveClock

Ports

Outputs 1

  • y

    Output signal: Amplitude or 0.

Parameters

  • Amplitudeamplitude1

    Value during the high part of each period.

  • Periodperiod1 s

    ≥ 0.0001

    Length of one period, in seconds. At least 0.0001 s.

  • Duty cyclewidth0.5

    0.001 to 1

    Duty cycle: the high fraction of each period, from 0.001 to 1. 1 keeps the output at Amplitude.

  • Start timestartTime0 s

    ≥ 0

    Time the first period starts, in seconds. 0 or more; the output is 0 before it.

Equations

Modelica
y = 0 for time < startTime
y = amplitude if mod(time − startTime, period) < width · period, else 0

Implementation

Modelica Standard Library 4.1.0Modelica.Blocks.Sources.Pulse
MSL documentation

Assumptions 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.