blockVariablePulse
Generate boolean pulse with the width specified by input
Information
Block that outputs a boolean pulse.
The output of this block is a pulse with a constant period
and a width as obtained from the input 0 ≤ u ≤ 1,
which is the width relative to the period.
The block produces the following ouputs:
-
If
u = 0, the outputyremainsfalse. -
If
0 < u < 1, the outputywill be a boolean pulse with the period specified by the parameterperiodand the width set tou*period. -
If
u = 1, the outputyremainstrue.
When the input u changes by more than deltaU and the output
has been holding constant for more than minimum holding time
minTruFalHol, the output will change to a new pulse with
width equal to u*period.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | period | Time for one pulse period | |
| Real | deltaU | 0.01 | Increment of u that triggers recomputation of output |
| Real | minTruFalHol | 0.01*period | Minimum time to hold true or false |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u | Ratio of the period that the output should be true | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y | Boolean pulse when the input is greater than zero |
Contents
| Name | Description |
|---|---|
| Generate boolean pulse with the width specified by the input |
Revisions
-
August 11, 2022, by Jianjun Hu:
First implementation.