blockResponseProcess

Calculate the lengths of the on and off period, the half period ratio, and the times when the tuning starts and ends

Information

This block processes a relay switch output signal and calculates

  1. the length of the on period,
  2. the length of the off period,
  3. the normalized time delay of the responses, and
  4. the flags which indicate if the tuning starts and completes.

For more details, please refer to:

Parameters

TypeNameDefaultDescription
RealyHigHigher value for the output
RealyLowLower value for the output

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputonRelay switch. True: tuning on perid, False: tuning off period
Buildings.Controls.OBC.CDL.Interfaces.RealInputtimSimulation time
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputtriggerReset the output when trigger becomes true
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputinTunCheck if a tuning is ongoing
Buildings.Controls.OBC.CDL.Interfaces.RealOutputtOnLength of the on period
Buildings.Controls.OBC.CDL.Interfaces.RealOutputtOffLength of the off period
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputtriStaTrue: the tuning starts
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputtriEndTrue: the tuning ends
Buildings.Controls.OBC.CDL.Interfaces.RealOutputtauNormalized time delay

Revisions

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