Buildings.Controls.OBC.CDL.Utilities
Package with utility functions
Information
This package contains utility models that are used throughout the library.
Extends from Modelica.Icons.Package (Icon for standard packages).
Package Content
Name | Description |
---|---|
Assert | Print a warning message when input becomes false |
Validation | Collection of models that validate the utilities blocks of the CDL |
Buildings.Controls.OBC.CDL.Utilities.Assert
Print a warning message when input becomes false
Information
Block that writes a warning if the input becomes false
.
Tools or control systems are expected to write message
together
with a time stamp to an output device and/or a log file.
Parameters
Type | Name | Default | Description |
---|---|---|---|
String | message | Message written when u becomes false |
Connectors
Type | Name | Description |
---|---|---|
input BooleanInput | u | Boolean input that triggers assert when it becomes false |
Modelica definition
block Assert "Print a warning message when input becomes false"
parameter String message "Message written when u becomes false";
Buildings.Controls.OBC.CDL.Interfaces.BooleanInput u
"Boolean input that triggers assert when it becomes false";
equation
assert(
u,
message,
AssertionLevel.warning);
end Assert;