Buildings.Controls.OBC.CDL.Integers.Sources
Package with blocks that generate source signals
Information
Package with blocks that generate signals.
Package Content
| Name | Description |
|---|---|
| Output constant signal of type Integer | |
| Generate pulse signal of type Integer | |
| Table look-up with respect to time with constant segments | |
| Collection of models that validate the logical sources blocks of the CDL |
Buildings.Controls.OBC.CDL.Integers.Sources.Constant
Output constant signal of type Integer
Information
Block that outputs a constant signal y = k,
where k is an Integer-valued parameter.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | k | Constant output value |
Connectors
| Type | Name | Description |
|---|---|---|
| output IntegerOutput | y | Connector of Integer output signal |
Modelica definition
Buildings.Controls.OBC.CDL.Integers.Sources.Pulse
Generate pulse signal of type Integer
Information
Block that outputs a pulse signal as shown below.
The pulse signal is generated an infinite number of times, and aligned with time=shift.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | amplitude | 1 | Amplitude of pulse |
| Real | width | 0.5 | Width of pulse in fraction of period [1] |
| Real | period | Time for one period [s] | |
| Real | shift | 0 | Shift time for output [s] |
| Integer | offset | 0 | Offset of output signals |
Connectors
| Type | Name | Description |
|---|---|---|
| output IntegerOutput | y | Connector of Pulse output signal |
Modelica definition
Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable
Table look-up with respect to time with constant segments
Information
Block that outputs Integer time table values.
The block takes as a parameter a time table of a format:
table = [ 0*3600, 2;
6*3600, 1;
18*3600, 8];
period = 24*3600;
where the first column of table is time and the remaining column(s) are the table values.
The time column contains Real values that are in units of seconds if timeScale = 1.
The parameter timeScale can be used to scale the time values, for example, use
timeScale = 3600 if the values in the first column are interpreted as hours.
The values in column two and higher must be of type Integer, otherwise the model stops with an error.
Until a new tabulated value is set, the previous tabulated value is returned.
The table scope is repeated periodically with periodicity period.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | table[:, :] | Table matrix with time as a first table column (in seconds, unless timeScale is not 1) and Integers in all other columns | |
| Real | timeScale | 1 | Time scale of first table column. Set to 3600 if time in table is in hours [1] |
| Real | period | Periodicity of table [s] |
Connectors
| Type | Name | Description |
|---|---|---|
| output IntegerOutput | y[nout] | Output of the table |