modelSignalPWM

Generates a pulse width modulated (PWM) boolean fire signal

Extends from Modelica.Electrical.PowerConverters.Icons.Control (Control icon).

Information

Improved version of Modelica.Electrical.PowerConverters.DCDC.Control.SignalPWM: It is possible to chooas a triangular reference signal instad of a sawtooth. This allows to sample current at the beginning of the switching period, hitting the average of teh current with good accuracy.

Parameters

TypeNameDefaultDescription
BooleanuseInternalSampleHoldtrueEnables internal sample-hold
BooleanuseConstantDutyCycletrueEnables constant duty cycle
RealconstantDutyCycle0Constant duty cycle
SI.Frequencyf1000Switching frequency
SI.TimestartTime0Start time
SingleReferenceTyperefTypeMagLev.Types.SingleReferenceType.SawtoothType of reference signal
BooleancommonComparisontrueCommon or separated comparison for fire_p and fire_n

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputdutyCycleDuty cycle
Modelica.Blocks.Interfaces.BooleanOutputfireFiring PWM signal
Modelica.Blocks.Interfaces.BooleanOutputnotFireFiring PWM signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.Constantconst
Modelica.Blocks.Nonlinear.Limiterlimiter
Modelica.Blocks.Discrete.ZeroOrderHoldzeroOrderHold
Modelica.Blocks.Sources.SawToothsawtooth
Modelica.Blocks.Sources.Trapezoidtriangle
Modelica.Blocks.Logical.GreatergreaterEqual_p
Modelica.Blocks.Logical.Notinverse
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Sources.ConstantconstOne
Modelica.Blocks.Logical.GreatergreaterEqual_n
Modelica.Blocks.Routing.RealPassThroughrealPassThrough