modelVariablePulse

Validation model for producing boolean pulse output

Information

Validation test for the block Buildings.Controls.OBC.CDL.Logical.VariablePulse.

  • The instance fal has the constant 0 input. It gives constant false output.
  • The instance tru has the constant 1 input. It gives constant true output.
  • The instance conTru has the constant 0.75 input. It gives the pulse output, with the width (75%).
  • The instance truFal has the input changing from 0.65 to 0. It outputs a pulse (with the width of 65%) and then changes to constant false.
  • The instance falTru has the input changing from 0 to 0.65 and then back to 0. It firstly outputs the constant false, then a pulse (with the width of 65%) and finally back to false.
  • The instance falTru1 has the input changing from 0.3 to 0.8 and then back to 0.3. It firstly outputs a pulse with the width of 30%, then a pulse with the width of 80%, and finally a pulse with the width of 30% again. When the input changes, it gives a new pulse immediately.
  • The instance conChaWid has a ramp input. It gives constant true output when the input is ramping up.

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Logical.VariablePulseconTruVariable pulse with constant pulse width
Buildings.Controls.OBC.CDL.Logical.VariablePulsefalVariable pulse with the zero width input
Buildings.Controls.OBC.CDL.Logical.VariablePulsetruFalVariable pulse with width input changing from positive value to zero
Buildings.Controls.OBC.CDL.Logical.VariablePulsefalTruVariable pulse with width input changing from zero to positive value
Buildings.Controls.OBC.CDL.Logical.VariablePulsetruVariable pulse with the constant width input
Buildings.Controls.OBC.CDL.Logical.VariablePulsefalTru1Variable pulse with width input changing between different positive values
Buildings.Controls.OBC.CDL.Reals.Sources.PulseconPulContinuous pulse signal
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantconConstant
Buildings.Controls.OBC.CDL.Reals.Sources.Constantcon1Constant value
Buildings.Controls.OBC.CDL.Reals.Sources.PulseconPul1Continuous pulse signal
Buildings.Controls.OBC.CDL.Reals.Sources.Constantcon2Constant value
Buildings.Controls.OBC.CDL.Reals.Sources.PulseconPul2Continuous pulse signal
Buildings.Controls.OBC.CDL.Logical.VariablePulseconChaWidVariable pulse with constantly changing pulse width
Buildings.Controls.OBC.CDL.Reals.Sources.RampramRamp input

Revisions

  • August 11, 2022, by Jianjun Hu:
    First implementation.