Merge
Combines several signals into one.
blockType: Merge
Path in the library:
|
Description
Block Merge combines the input signals into one output. The output value at any given time is equal to the last calculated output value of the previous (control) blocks. The number of inputs is set by the parameter Number of inputs.
Block Merge It is used to combine input signals that are updated at different times into a combined signal in which alternating values retain their individuality and time.
Recommendations for using the block Merge
When using the block Merge The following recommendations should be followed:
-
For managing blocks Merge always use conditionally executed subsystems without any intermediate blocks.
-
Make sure that only one of the preceding (control) conditionally executed subsystems is executed at any time step.
-
Make sure that all input signals have the same interval between the calculation steps.
-
It is forbidden to branch the signal coming to the input of the block Merge.
-
Do not register the signal applied to the input of the unit Merge.
For each block input Merge the topmost non-virtual source must be a conditionally executed subsystem (not including the subsystem For Iterator).
Ports
Output
#
OUT_1
—
The output signal
scalar | vector
Details
The output signal obtained from the combined input signals.
| Data types |
|
| Complex numbers support |
Yes |
Input
#
IN_1
—
the first input signal
scalar | vector
Details
The first input signal to be combined with other input signals.
| Data types |
|
| Complex numbers support |
Yes |
#
IN_2
—
the second input signal
scalar | vector
Details
The second input signal, which will be combined with other input signals.
The number of input ports depends on the parameter value Number of inputs.
| Data types |
|
| Complex numbers support |
Yes |
Parameters
Main
#
Number of inputs —
number of input ports to combine
Integer
Details
The number of input signals to combine. The block creates a port for each input signal.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |
#
Initial output value —
initial value of the output signal
Scalar / array of real and/or complex numbers
Details
The initial value of the output signal.
| Default value |
|
| Program usage name |
|
| Tunable |
No |
| Evaluatable |
Yes |