blockSampleVectorizedAndClocked
Sample the continuous-time, Real input signal vector and provide it as clocked output signal vector. The clock is provided as input signal
Extends from Modelica_Synchronous.RealSignals.Interfaces.SamplerIcon (Basic graphical layout of block used for sampling of Real signals).
Information
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:
![]() |
![]() |
|
| model | simulation result |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 1 | Size of input signal vector u (= size of output signal vector y) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[n] | u | Connector of continuous-time, Real input signal vector | |
| Modelica.Blocks.Interfaces.RealOutput[n] | y | Connector of clocked, Real output signal vector | |
| Modelica_Synchronous.ClockSignals.Interfaces.ClockInput | clock | Output signal vector y is associated with this clock input |

