blockIntegerArrayHold

Block that holds the value of an integer array for a given time

Information

This blocks updates the value of the output array to match the value of the input array only if the time since the last update exceeds holdDuration. Otherwise, the value of the output array is kept equal to its value at the time of the last update. At initial time, the value of the output array is set to the value of the input array, and this is considered as the first update time.

Parameters

TypeNameDefaultDescription
Integernin0Array dimension
IntegernoutninOutput array dimension
RealholdDuration1Hold duration

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.IntegerInput[nin]uConnector of Real input signal
Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput[nout]yConnector of Integer output signal

Revisions

  • February 24, 2023, by Antoine Gautier:
    First implementation.