Clock

Digital Clock Source

    Clock

Library

Modelica/Electrical/Digital/Sources

Description

The clock source forms pulses between the '0' value (forcing 0) and the '1' value (forcing 1).The pulse length width is specified in percent of the period length period.The number of periods is unlimited. The first pulse starts at startTime.

The clock source is a special but often used variant of the pulse source.

Parameters

Clock_0

NameLabelDescriptionData TypeValid Values

mo_startTime

startTime

Output = offset for time < startTime

Scalar

mo_period

period

Time for one period

Scalar

mo_width

width

Width of pulses in % of period

Scalar

mo_t_i

t_i

t_i

Structure

mo_t_i/fixed

fixed

Cell of scalars

true
false

mo_t_i/start

start

Cell of scalars

Clock_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

't_width'

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

y

implicit

Connector of Digital output signal

output

1