modelWatchDisplay

Diagram of WatchDisplay

Information

Displays four large digits, one small digit and one two letter text according to signals provided through the IntegerInputs. The top IntegerInput defines the level of illumination of the display.

Signal inputs are:

  • Large digits, input at the bottom. Range: 0-9
  • Small digit, input at the right bottom. Range: 0-99
  • Textual Input, input at top right. Range: 0-11. Signals are decoded as: 0 = "", 1 = "Mo", 2 = "Tu", 3 = "We", 4 = "Th", 5 = "Fr", 6 = "Sa", 7 = "Su", 8 = "AM", 9 =" PM", 10="Ch", 11 = "SW".
  • Illumination level at the top. Range 0-2. Signals are decoded as: 0 - dark, 1 - normal, 2 - bright.

Parameters

TypeNameDefaultDescription
Integerprecision0

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerInputlarge_digit1
Modelica.Blocks.Interfaces.IntegerInputsmall_digit
Modelica.Blocks.Interfaces.IntegerInputtext_digit1 = Mo, 2 = Tu, 3 = We, 4 = Th, 5 = Fr, 6 = Sa, 7 = Su, 8 = AM, 9 = PM, 10 = Ch, 11 = SW
Modelica.Blocks.Interfaces.IntegerInputillumination 0 = dark {0,95,191}, 1 = standard {127,191,255}, 2 = bright {159,223,223}
Modelica.Blocks.Interfaces.IntegerInputlarge_digit2
Modelica.Blocks.Interfaces.IntegerInputlarge_digit3
Modelica.Blocks.Interfaces.IntegerInputlarge_digit4

Components

TypeNameDefaultDescription
Integer[3]dispColourif mod(illumination, 3) == 1 then {127, 191, 255} else if mod(illumination, 3) == 2 then {159, 223, 223} else {0, 95, 191}