WOLFRAM SYSTEM MODELER
AssignClockVectorizedAssigns a clock to a clocked Real signal vector |
SystemModel["Modelica_Synchronous.RealSignals.Sampler.AssignClockVectorized"]
This block assigns a clock to the Real vector input signal u and provides u as vector output signal y.
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.
n |
Value: 1 Type: Integer Description: Size of input signal vector u (= size of output signal vector y) |
---|
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 |
Modelica_Synchronous.Examples.Elementary.RealSignals Example of a AssignClockVectorized block for Real signals |
|
Modelica_Synchronous.WorkInProgress.Tests |