modelTime

Information

Outputs a time integer signal depending on what mode the watch is currently in. As all four time signals, current time, time setting, alarm1 setting and alarm2 setting should be decoded in the exact same fashion, the output of Time is handled the same in DisplayDecoder. This model also contains the actual clock that makes one tick every second. when a user sets a new time, the discrete state in TriggeredAdd will be reset and the output will re-set to that value and continue ticking.

Connectors

TypeNameDefaultDescription
SignalBussignalBus
Modelica.Blocks.Interfaces.IntegerOutputy

Components

TypeNameDefaultDescription
Modelica_StateGraph2.Blocks.MathInteger.TriggeredAddclock
Modelica.Blocks.Sources.IntegerConstanttime_scale
Modelica.Blocks.Sources.SampleTriggertime_update_frequency
Modelica_StateGraph2.Blocks.MathInteger.MultiSwitchtime_to_display
Modelica_StateGraph2.Blocks.MathBoolean.Andand1
Modelica.Blocks.Logical.Prepre1
Modelica_StateGraph2.Blocks.MathBoolean.Oror1
Modelica.Blocks.Sources.BooleanExpressionT_hits_T1
Modelica.Blocks.Sources.BooleanExpressionT_hits_T2
Modelica.Blocks.Sources.BooleanExpressionT_IS_WHOLE_HOUR