TimeInputConverted

Clock to provide time-signal in a different time base

Diagram

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The output y is a time signal (e.g., a clock) → Modelica.Blocks.Sources.ContinuousClock. The units for the output will here be a non-SIunit (e.g., min, h, d, wk, ...).

Notes

  • To make components and models compatible with each other, time should always be in the SIunit s, while displayUnit is used to enter and present values in a different unit of time.

  • This component can be used to provide an output with a different `unit` of time instead of merely a different `displayUnit` of time. It should be used sparsely and with care.

  • This component will not be supported by Modelica tools in general, but has been tested to work with Wolfram System Modeler 14.

See also

TimeInputTimeBases

Parameters (2)

offset

Value: modelSettings.modelStartTime

Type: Time (s)

Description: Offset of output signal y given in seconds (default = modelStartTime)

startTime

Value: modelSettings.modelStartTime

Type: Time (s)

Description: Output y = offset for time <= startTime (default = modelStartTime)

Connectors (1)

y

Type: RealOutput

Description: Output signal

Components (3)

modelSettings

Type: ModelSettings

Description: Setting important global variables within a model

contclock

Type: ContinuousClock

Description: Generate current time signal

timeConversion

Type: TimeConversion

Description: Converts a time signal from time base A to time base B

Revisions

  • Class adapted to be compliant with MSL 4.0.0 in v2.2.

  • Icon modified and will show component name in v2.2.