blockPlaceholderInteger
Output a placeholder signal
Information
This block enables replacing a variable that is conditionally removed with either a parameter or another input variable.
-
If the parameter
have_inpis true, the output variableyis equal to the input variableu. -
If the parameter
have_inpis false and the parameterhave_inpPhis true, the output variableyis equal to the input variableuPh. -
If the parameter
have_inpis false and the parameterhave_inpPhis false, the output variableyis equal to the parameteru_internal.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | have_inp | true | Set to true if input signal is available |
| Boolean | have_inpPh | false | Set to true if placeholder value is provided with input signal |
| Integer | u_internal | Placeholder value if input signal is not available |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | u | Input | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerInput | uPh | Input | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | y | Output | |
| Buildings.Controls.OBC.CDL.Integers.Sources.Constant | ph | Placeholder signal if input signal is not available |
Revisions
-
March 29, 2024, by Antoine Gautier:
First implementation.