modelDaytimeSwitch
Set the output to true if the given daytime stamp is equal to current daytime
Information
Using AixLib.Utilities.Time.CalendarTime, this model triggers a control if the current time is equal to a certain hour of the day and or day of the week.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | weekly | true | Switch between a daily or weekly trigger approach |
| Integer | weekDay | 1 | Day of the week |
| Integer | hourDay | 12 | Hour of the day |
| AixLib.Utilities.Time.Types.ZeroTime | zerTim | Enumeration for choosing how reference time (time = 0) should be defined | |
| Integer | yearRef | 2016 | Year when time = 0, used if zerTim=Custom |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| AixLib.Utilities.Time.CalendarTime | calTim | Used to get the unix time stamp and calendar time from the simulation time | |
| Modelica.Blocks.Interfaces.BooleanOutput | isDaytime | Output boolean if current time stamp matches the set parameters |
Revisions
-
November 26, 2018 by Fabian Wüllhorst:
First implementation (see issue #577)