WOLFRAM SYSTEM MODELER

AssignClockVectorized

Assigns a clock to a clocked Real signal vector

Wolfram Language

In[1]:=
SystemModel["Modelica_Synchronous.RealSignals.Sampler.AssignClockVectorized"]
Out[1]:=

Information

This block assigns a clock to the Real vector input signal u and provides u as vector output signal y.

Example

The following example shows two discrete counters. In order to execute the counters with a sample period of 20ms an AssignClockVectorized block is used. Due to clock inference all equations within the blocks are deduced to be active at the clock ticks given by the periodicClock block.

   
model simulation result

At every clock tick (that is every 20ms) the output of the unitDelay1 block is incremented by one and that of the unitDelay2 block is incremented by two. The vector size of the input and output is provided by parameter n=2 which is also shown in the icon of block assignClock1.

Parameters (1)

n

Value: 1

Type: Integer

Description: Size of input signal vector u (= size of output signal vector y)

Connectors (3)

u

Type: RealInput[n]

Description: Connector of clocked, Real input signal

y

Type: RealOutput[n]

Description: Connector of clocked, Real output signal

clock

Type: ClockInput

Description: 'input Clock' as connector

Used in Examples (2)

AssignClockVectorized

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of a AssignClockVectorized block for Real signals

TestRealSampler

Modelica_Synchronous.WorkInProgress.Tests