Buildings.Utilities.Plotters.BaseClasses
Package with base classes for Buildings.Utilities.Plotters
Information
This package contains base classes that are used to construct the models in Buildings.Utilities.Plotters.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
Backend | Backend implementation for the plotter |
PartialPlotter | Partial block for plotters |
sendReal | Function that sends an array of Real values to be written to the html file |
sendString | Function that prints a string to the html file |
sendTerminalString | Function that prints the string to be added at the end of the html file |
Buildings.Utilities.Plotters.BaseClasses.Backend
Backend implementation for the plotter
Information
Class derived from ExternalObject
having two local external function definitions,
named destructor
and constructor
respectively.
These functions create and release an external object that allows multiple plotters to write to the same html output file.
Extends from ExternalObject.
Modelica definition
Buildings.Utilities.Plotters.BaseClasses.PartialPlotter
Partial block for plotters
Information
Partial block that implements the basic functionality used by the scatter and the time series plotters.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Parameters
Type | Name | Default | Description |
---|---|---|---|
String | fileName | plotConfiguration.fileName | Name of html file |
String | introduction | "" | Introduction text written below title and above the plot |
Activation | |||
Time | samplePeriod | plotConfiguration.samplePeriod | Sample period of component [s] |
LocalActivation | activation | Buildings.Utilities.Plotters... | Set to true to enable an input that allows activating and deactivating the plotting |
Time | activationDelay | plotConfiguration.activation... | Time that needs to elapse to enable plotting after activate becomes true [s] |
Labels | |||
String | title | getInstanceName() | Title of the plot |
String | legend[n] | String array for legend, such as {"x1", "x2"} |
Connectors
Type | Name | Description |
---|---|---|
input RealVectorInput | y[n] | y-data |
input BooleanInput | activate | Set to true to enable plotting of time series after activationDelay elapsed |
Modelica definition
Buildings.Utilities.Plotters.BaseClasses.sendReal
Function that sends an array of Real values to be written to the html file
Information
External function that prints the array of Real values x
to the plot object.
The number of elements in x
is declared in the contructor
Buildings.Utilities.Plotters.BaseClasses.Backend.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Backend | plt | Plot object | |
Real | x[:] | Array of Real values to be sent to printer |
Modelica definition
Buildings.Utilities.Plotters.BaseClasses.sendString
Function that prints a string to the html file
Information
External function that prints string
to the plot object.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Backend | plt | Plot object | |
String | string | String to be printed |
Modelica definition
Buildings.Utilities.Plotters.BaseClasses.sendTerminalString
Function that prints the string to be added at the end of the html file
Information
External function that prints string
to the plot object.
The string will be added at the end of the html file.
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
Type | Name | Default | Description |
---|---|---|---|
Backend | plt | Plot object | |
String | string | String to be printed |