Buildings.Utilities.IO.SignalExchange.Examples

This package contains examples for the signal exchange block

Information

This package contains examples for the use of models that can be found in Buildings.Utilities.IO.SignalExchange.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder FirstOrder Uses signal exchange block for a first order dynamic system
Buildings.Utilities.IO.SignalExchange.Examples.BaseClasses BaseClasses Contains base classes for signal exchange examples

Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder

Uses signal exchange block for a first order dynamic system

Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder

Information

This example uses the signal exchange blocks in an original model, Buildings.Utilities.IO.SignalExchange.Examples.BaseClasses.OriginalModel along with a corresponding model that would result if the original model were compiled with the BOPTEST parser, Buildings.Utilities.IO.SignalExchange.Examples.BaseClasses.ExportedModel to demonstrate the overwriting of either setpoint or actuator control signals and reading of signals.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model FirstOrder "Uses signal exchange block for a first order dynamic system" extends Modelica.Icons.Example; BaseClasses.ExportedModel expMod; Modelica.Blocks.Sources.Constant uSet(k=2); Modelica.Blocks.Sources.BooleanStep actSet(startTime=50); Modelica.Blocks.Sources.BooleanStep actAct(startTime=100); Modelica.Blocks.Sources.Constant uAct(k=3); equation connect(uSet.y, expMod.oveWriSet_u); connect(actSet.y, expMod.oveWriSet_activate); connect(actAct.y, expMod.oveWriAct_activate); connect(uAct.y, expMod.oveWriAct_u); end FirstOrder;