Pulse voltage

Periodic voltage pulses.

  • electrical
  • Modelica Standard Library
  • 2 ports
  • 4 parameters
BlockPulse voltageKindpulseVoltageLibraryElectrical

Description

An ideal voltage source producing a periodic rectangular wave. Each period starts at Offset + V for Width percent of the period, then drops to Offset.

Example

Electrical sources Every voltage and current source driving a resistor, each with a voltmeter across it.

DC 12 VLoad A 12 Ωv AGround ADC 1 ALoad B 10 Ωv BGround BSine 10 VLoad C 10 Ωv CGround CSine 1 ALoad D 10 Ωv DGround DRamp 10 VLoad E 10 Ωv EGround EPulse 5 VLoad F 10 Ωv FGround F3 sin(2π·50t)Signal voltageLoad G 10 Ωv GGround G0.5Signal currentLoad H 10 Ωv HGround H
In Gradara, select a Pulse voltage block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:DC voltageVoltage sensorConstantGroundSine waveResistorAC voltageAC currentDC currentRamp voltageControlled voltageControlled current

Ports

Conserving terminals 2

  • +p

    Positive terminal.

  • −n

    Negative terminal.

Parameters

  • AmplitudeV5 V

    Pulse height above Offset, in volts.

  • Widthwidth50 %

    0 to 100

    High time, in percent of the period. Must be greater than 0 and at most 100.

  • Periodperiod0.001 s

    ≥ 0

    Period, in seconds. Must be greater than 0.

  • Offsetoffset0 V

    Low level, in volts.

Equations

Modelica
p.v − n.v = offset + V while mod(time, period) < period · width / 100
p.v − n.v = offset otherwise
p.i + n.i = 0

Implementation

Modelica Standard Library 4.1.0Modelica.Electrical.Analog.Sources.PulseVoltage
MSL documentation

Assumptions and limitations

  • Edges are instantaneous. The first period starts high at time 0; there is no start delay.

Tips

  • For a gate signal driven by a duty-cycle input, use PWM generator instead.

See also

Select a block in Gradara and press F1 to open its page offline.