WOLFRAM SYSTEM MODELER

SubSample

Sub-sample the input clock and provide it as output clock

Wolfram Language

In[1]:=
SystemModel["Modelica.Clocked.ClockSignals.Sampler.SubSample"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This block sub-samples the input clock u and provides it as output clock y.

To be more precise: The clock y is factor-times slower than the clock u. The first activation of clock y coincides with the first activation of clock u. The sub-sampling factor is defined by Integer parameter factor.

Example

The following example generates a periodic clock of 20 ms period, and then sub-samples the resulting clock signal with a factor of 3:

SubSample_Model.png     SubSample_Result.png
model simulation result

As can be seen, subSample.y picks every third-value of periodicClock.y due to the sub-sampling, and the sub-sampling factor = 3 is displayed in the icon of the subSample block. Note the down-arrow in the icon of the subSample block indicates that clock subSample.y is slower as clock subSample.u.

Parameters (1)

factor

Value:

Type: Integer

Description: Sub-sampling factor (>= 1)

Connectors (2)

u

Type: ClockInput

Description: Connector of a clock as input signal

y

Type: ClockOutput

Description: Connector of a clock as output signal (clock y is slower as clock of u)

Used in Examples (2)

SubClocked

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where clocks are defined with sub-sampling and partitions with super-sampling

SubSample

Modelica.Clocked.Examples.Elementary.ClockSignals

Example of a SubSample block for Clock signals