SampleVectorizedAndClocked

Sample the continuous-time, Real input signal vector and provide it as clocked output signal vector. The clock is provided as input signal

Information

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

This block is similar to the SampleClocked block. The only difference is that the continuous-time input signal is a vector: All input signals are sampled and are associated with the scalar clock signal provided via the second input.

Example

The following example has a vector as input, consisting of two different sine signals. These signals are sampled with a periodic clock of 20 ms period:

SampleVectorizedAndClocked_Model.png     SampleVectorizedAndClocked_Result.png
model simulation result

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 continuous-time, Real input signal vector

y

Type: RealOutput[n]

Description: Connector of clocked, Real output signal vector

clock

Type: ClockInput

Description: Output signal vector y is associated with this clock input

Used in Examples (1)

SampleVectorizedAndClocked

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SampleVectorizedAndClocked block for Real signals