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

TypeNameDefaultDescription
BooleanweeklytrueSwitch between a daily or weekly trigger approach
IntegerweekDay1Day of the week
IntegerhourDay12Hour of the day
AixLib.Utilities.Time.Types.ZeroTimezerTimEnumeration for choosing how reference time (time = 0) should be defined
IntegeryearRef2016Year when time = 0, used if zerTim=Custom

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputisDaytimeOutput boolean if current time stamp matches the set parameters

Components

TypeNameDefaultDescription
AixLib.Utilities.Time.CalendarTimecalTimUsed to get the unix time stamp and calendar time from the simulation time

Revisions

  • November 26, 2018  by Fabian Wüllhorst:
    First implementation (see issue #577)