Up-sample block
The Up-sample block increases the sampling rate of the input signal by repeating values or inserting zeros.
The rate of increase of the sampling step is determined by the dialogue parameter 'Upsample factor'.
This block is capable of treating scalar-based and vector-based input signals.
The following example shows the two types of output that can realize this block with an upsample factor of 8.
Figure 1: Regular input and output of the UPSMPL_c block
- Size of inputs
Size of the regular input port.
Properties : Type 'vec' of size 1.
- Upsample factor
The up-sample factor.
Properties : Type 'vec' of size 1.
- Offset
The inital value of the discrete counter, gives the offset of the first output sample.
Properties : Type 'vec' of size 1.
- Scalar Based:0, Vector Based:1
Type of input vectors.
Properties : Type 'vec' of size 1.
- 0
Sampled-based : each element of the input vector is a variable.
- 1
Vector based, each input vector is a same signal.
- Type (Resample:0, zero-insert:1)
The type of upsample.
Properties : Type 'vec' of size 1.
- 0
up-sample by repeating values.
- 1
up-sample by insertion of zeros.
- Inherit (no:0, yes:1)
Herits events by its regular input ports (disable the event input port).
Properties : Type 'vec' of size 1.
- always active: no
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- regular inputs:
- port 1 : size [1,1] / type 1
- regular outputs:
- port 1 : size [1,1] / type 1
- number/sizes of activation inputs: 0
- number/sizes of activation outputs: 0
- continuous-time state: no
- discrete-time state: no
- object discrete-time state: no
- name of computational function: upsmplblk
- MODNUMCOS/macros/scicos_blocks/Signal/UPSMPL_c.sci [view code]
- MODNUMCOS/routines/signal/upsmplblk.c (Type 4) [view code]
A. Layec