| Name | Description | 
|---|---|
| Zero order hold for boolean variable | |
| Collection of models that illustrate model use and test models | 
Buildings.Controls.Discrete.BooleanDelay
Block that delays the boolean input signal.
Extends from Modelica.Blocks.Interfaces.BooleanSISO (Single Input Single Output control block with signals of type Boolean), Modelica.Blocks.Interfaces.DiscreteBlock (Base class of discrete control blocks).
| Type | Name | Default | Description | 
|---|---|---|---|
| Time | samplePeriod | Sample period of component [s] | |
| Time | startTime | 0 | First sample time instant [s] | 
| Type | Name | Description | 
|---|---|---|
| input BooleanInput | u | Connector of Boolean input signal | 
| output BooleanOutput | y | Connector of Boolean output signal | 
block BooleanDelay "Zero order hold for boolean variable"
  extends Modelica.Blocks.Interfaces.BooleanSISO;
  extends Modelica.Blocks.Interfaces.DiscreteBlock;
protected 
  Boolean ySample;
algorithm 
  when {sampleTrigger, initial()} then
    y := ySample;
    ySample := u;
  end when;
end BooleanDelay;