Buildings.Controls.OBC.CDL.Utilities

Package with utility functions

Information

This package contains utility models that are used throughout the library.

Package Content

Name Description
Buildings.Controls.OBC.CDL.Utilities.Assert Assert Print a warning message when input becomes false
Buildings.Controls.OBC.CDL.Utilities.Validation Validation Collection of models that validate the utilities blocks of the CDL

Buildings.Controls.OBC.CDL.Utilities.Assert Buildings.Controls.OBC.CDL.Utilities.Assert

Print a warning message when input becomes false

Buildings.Controls.OBC.CDL.Utilities.Assert

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

TypeNameDefaultDescription
Stringmessage Message written when u becomes false

Connectors

TypeNameDescription
input BooleanInputuBoolean 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;