Buildings.Controls.Discrete

Package with models for discrete time controls

Information


This package contains components models for discrete time controls.
For additional models, see also 

Modelica.Blocks.Discrete.

Package Content

NameDescription
Buildings.Controls.Discrete.BooleanDelay BooleanDelay Zero order hold for boolean variable
Buildings.Controls.Discrete.Examples Examples Collection of models that illustrate model use and test models


Buildings.Controls.Discrete.BooleanDelay Buildings.Controls.Discrete.BooleanDelay

Zero order hold for boolean variable

Buildings.Controls.Discrete.BooleanDelay

Information

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).

Parameters

TypeNameDefaultDescription
TimesamplePeriod Sample period of component [s]
TimestartTime0First sample time instant [s]

Connectors

TypeNameDescription
input BooleanInputuConnector of Boolean input signal
output BooleanOutputyConnector of Boolean output signal

Modelica definition

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;

HTML-documentation generated by Dymola Fri Jul 30 18:05:51 2010.