Buildings.Controls.Discrete.Examples
Collection of models that illustrate model use and test models
Information
This package contains examples for the use of models that can be found in Buildings.Controls.Discrete.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
BooleanDelay | Example model for boolean delay |
Buildings.Controls.Discrete.Examples.BooleanDelay
Example model for boolean delay
Information
Example that demonstrates the use of the boolean delay block. The output signal of the block is delayed by one sampling interval.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model BooleanDelay "Example model for boolean delay"
extends Modelica.Icons.Example;
Buildings.Controls.Discrete.BooleanDelay del(samplePeriod=0.05);
Modelica.Blocks.Sources.BooleanPulse booleanPulse(
period=0.1,
width=50,
startTime=0.01);
equation
connect(booleanPulse.y, del.u);
end BooleanDelay;