EngeeComms.Repeat
Resampling of the input signal at a higher rate by repeating the values.
| Library |
|
| Block |
Description
System object EngeeComms.Repeat increases the sampling rate of each input channel (by the size of on ) up to the frequency, in times the sampling rate of the input signal. To do this, the object repeats each successive input count at the output. once. An integer L set in the RepetitionCount or via the input argument L.
To increase the sampling rate of each input channel, follow these steps:
-
Create an object EngeeComms.Repeat and set its properties.
-
Call the object with arguments as if it were a function.
To learn more about how to work with system objects, see Engee System Objects.
Syntax
Creation
-
repeat = EngeeComms.Repeat()— creates a system object to increase the sampling rate of each input channelrepeatwith the default properties.Example:
repeat = EngeeComms.Repeat() -
repeat = EngeeComms.Repeat(Name=Value)— creates a system objectrepeatwith the specified properties as a pairName=Value, whereName— the name of the property, andValue— the appropriate value. You can specify multiple pairs «name-value» the order of the pairs does not matter. Unspecified properties retain their default values.Example:
repeat = EngeeComms.Repeat(RepetitionCountSource=10)
Arguments
Input arguments
In — input signal
+
scalar | vector | the matrix
Details
The input signal is in the form of a real scalar, vector, or matrix.
This argument has no name until you set the property to RepetitionCountSource value Input port.
| Типы данных |
|
| Support for complex numbers |
Yes |
L — number of repetitions
+
a positive integer less than Lmax
Details
The input signal of the number of repetitions as a positive integer.
Dependencies
To use this argument, set the property to RepetitionCountSource value Input port.
| Типы данных |
|
| Support for complex numbers |
None |
Output arguments
Out — output signal
+
scalar | vector | the matrix
Details
The output signal is with a sampling rate that is in times higher than the sampling rate at the input. System object EngeeComms.Repeat shows the output signal having the same data type and the same dimension as the input signal. The size of the output signal depends on the value of the number of repetitions and the setting of the RateOptions.
If for a property RepetitionCount value set L, and for the property RateOptions value set:
-
Enforce single-rate processing— the object maintains the sampling rate at the input, increasing the size of the output frame in once. -
Allow multirate processing— the object will re-sample the signal in such a way that the sampling frequency at the output is It exceeds the entrance value by several times. The output signal has the same frame size as the input signal.
When entering the number of repetitions via the input port L property RateOptions is automatically set to Enforce single-rate processing. In this case, the object maintains the sampling rate of the input signal at the output, increasing the size of the output frame in once.
The output signal is a variable-size signal if one or both conditions are met.:
-
A variable-size signal is applied to the input.
-
The number of repetitions is supplied via the L port.
| Типы данных |
|
| Support for complex numbers |
None |
Features
#
InputProcessing —
input signal processing method
String
Details
Specify how the object should process the input. You can set this property to one of the following options:
-
Columns as channels (frame based)-if you select this option, the object processes each column of input as a separate channel. In this mode, the object can perform single-speed or multirate processing. -
Elements as channels (sample based)-if you select this option, the object processes each input element as a separate channel. In this mode, the object always performs multirate processing.
| Data types |
|
#
RateOptions —
a method by which the facility increases the sampling frequency of the input
String
Details
Specify the method by which the object increases the sampling rate of the input. You can select one of the following options:
-
Enforce single-rate processing- If you select this option, the object maintains the input sample rate by increasing the output frame size by a factor of L. To select this option, you must set the property InputProcessing toColumns as channels (frame based). -
Allow multirate processing- if you select this option, the object will resample the signal so that the output sample rate is times faster than the input.
| Data types |
|
#
RepetitionCountSource —
repetition source
String
Details
The source of the number of repetitions:
-
Dialog parameter- the number of repetitions is set in the * property.RepetitionCount*. -
Input port- the number of repetitions will be obtained through the input argument L.
| Data types |
|
#
RepetitionCount —
number of repetitions
Real number
Details
Number of repetitions as a positive integer. This value represents the number of times the object repeats the input value. It is the factor by which the object increases the output frame size or sampling rate.
Dependencies
To use this property, set the property RepetitionCountSource property to Dialog parameter.
#
InitialConditions —
initial value
Scalar / vector of Int64
Details
Specify the value with which the object is initialised for non-zero wait time cases as a scalar or matrix.
| Data types |
|