modelOnOffPeriod

Test model for calculating the length of the on period and the off period

Information

Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.OnOffPeriod.

This example considers a relay switch output from a relay controller, relSwi.
  • At 0.06s, relSwi changes from On to Off.
  • At 0.7s, relSwi changes into On.
  • At 0.86s, relSwi changes into Off.

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.OnOffPeriodonOffPerCalculate the length of the on period and the off period
Buildings.Controls.OBC.CDL.Reals.Sources.CivilTimemodTimSimulation time
Buildings.Controls.OBC.CDL.Logical.Sources.PulserelSwiControl switch output
Buildings.Controls.OBC.CDL.Logical.Sources.PulseretSigReset signal

Revisions

  • June 1, 2022, by Sen Huang:
    First implementation.