blockVoltage2DutyCycle

Linearly transforms voltage to duty cycle

Information

Transforms the input voltage signal into a duty cycle:

  • reciprocal = false and useBipolarVoltage = false: v/VLim = dutyCycle
  • reciprocal = false and useBipolarVoltage = true : v/VLim = 2*dutyCycle - 1
  • reciprocal = true: v/VLim = 1/(1 - dutyCycle)

Parameters

TypeNameDefaultDescription
BooleanreciprocalfalseEnables reciprocal formula between voltage and duty cycle
BooleanuseBipolarVoltagetrueEnables bipolar input voltage range
BooleanuseConstantVoltageLimittrueEnables constant voltage limit
SI.VoltageVLimVoltage range limit mapped to dutyCycle = 1 resp. 0

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputvVoltage
Modelica.Blocks.Interfaces.RealOutputdutyCycleDuty cycle
Modelica.Blocks.Interfaces.RealInputvLimVoltage limit

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.ConstantvLimConstConstant voltage limit