Zip Streams component
Creates a single output stream from multiple input streams by aligning the events from each input stream.
In-ports
1 ... n Any
- two or more input streams to zip.
Out-ports
output Array
- emits events with array of zipped values from the input streams.
Overview
Zip Streams component outputs a stream with values from input streams lined up with each other.
For example, if you have two input streams with a sequence of numerical values 1
, 2
, 3
, and 4
, 5
, 6
, 7
, the output stream will issue [1, 4]
, [2, 5]
, and [3, 6]
. The output stream will emit the next value only when it has at least one value from each input stream.
Set the number of input streams in the Settings dialog.
Note: This component sometimes is used incorrectly instead of Combine Streams. Please make sure you understand the difference and are making the right choice.
Settings
Number of input streams
Set the number of input ports. The default number is two.