blockSwitchAtTimeOfDay
Swith boolean signal to true for a specific time of day
Information
1. Purpose of model
Switch model that gives a positive value between two specified times of day.
2. Level of detail, physical effects considered, and physical insight
(Description)
3. Limits of validity
(Description)
4. Interfaces
(none)
5. Nomenclature
(no elements)
6. Governing Equations
(no equations)
7. Remarks for Usage
The parameters are given as real numbers from 0 to 24 as a time point. The output is as Boolean output, which is true if the time is between those two parameters else it gives false.
8. Validation
(no validation or testing necessary)
9. References
(none)
10. Version History
Created by Yousef Omran, Fraunhofer UMSICHT, 2018
Modified by Anne Hagemeier (anne.hagemeier@umsicht.fraunhofer.de), July 2018
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.NonSI.Time_hour | startTime | 12 | Start of period where signal is switched on as hour of the day (out of 24) |
| Modelica.Units.NonSI.Time_hour | endTime | 15 | End of period where signal is switched on as hour of the day (out of 24) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | y |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.Timer | timer | ||
| Modelica.Blocks.Sources.BooleanPulse | booleanPulse | ||
| Modelica.Blocks.Logical.LogicalSwitch | logicalSwitch | ||
| Modelica.Blocks.Logical.GreaterEqualThreshold | greaterEqualThreshold | ||
| Modelica.Blocks.Logical.LessThreshold | lessEqualThreshold | ||
| Modelica.Blocks.Logical.And | and1 | ||
| Modelica.Blocks.Sources.BooleanExpression | booleanExpression | ||
| Modelica.Blocks.Sources.BooleanExpression | booleanExpression1 |