WOLFRAM SYSTEM MODELER

Sample2

Example of a Sample block for Integer signals with direct feed-through in the continuous-time and the clocked partition

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2"]
Out[1]:=

Information

Elementary example for the documentation of block Modelica_Synchronous.IntegerSignals.Sampler.Sample.

Components (8)

sample1

Type: SampleClocked

Description: Sample the continuous-time, Integer input signal and provide it as clocked output signal. The clock is provided as input signal

periodicClock

Type: PeriodicExactClock

Description: Generates a periodic clock signal with a period defined by an Integer number with resolution

step

Type: IntegerStep

Description: Generate step signal of type Integer

hold

Type: Hold

Description: Hold the clocked, Integer input signal and provide it as continuous-time output signal (zero order hold)

sample2

Type: Sample

Description: Sample the continuous-time, Integer input signal and provide it as clocked output signal (clock is inferred)

sum1

Type: Sum

Description: Sum of Integers: y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n]

sum2

Type: Sum

Description: Sum of Integers: y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n]

integerConstant

Type: IntegerConstant

Description: Generate constant signal of type Integer