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.WeatherStation WeatherStation Example use of WeatherStation
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;

Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation

Example use of WeatherStation

Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation

Information

This example uses the weather station signal exchange block, Buildings.Utilities.IO.SignalExchange.WeatherStation along with a TMY weather data reader.

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

Modelica definition

model WeatherStation "Example use of WeatherStation" extends Modelica.Icons.Example; Buildings.Utilities.IO.SignalExchange.WeatherStation weaSta "Weather station"; BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= Modelica.Utilities.Files.loadResource("modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos")) "Weather data reader"; equation connect(weaDat.weaBus, weaSta.weaBus); end WeatherStation;