Demux

This function block is used to split multiple input data streams into separate outputs. It simplifies the management of multiple data streams by allowing users to demultiplex inputs based on a selected output size.

📥 Inputs

In Accepts multiple inputs, which can be of any generic type. This allows you to pass a collection of data streams into the block.

📤 Outputs

Out 1 The first output provides the first demultiplexed data.

Out 2 The second output provides the second demultiplexed data.

*Additional outputs may be dynamically created based on the selected size.

🕹️ Controls

Output size A dropdown menu that allows you to select the number of outputs you wish to have. You can choose between 2 to 20 outputs.

🎨 Features

Dynamic Output Management The block adjusts the number of outputs based on user selection, making it versatile for various use cases.

Multiple Data Types Support The block can handle a variety of data types, making it suitable for different applications.

📝 Usage Instructions

  1. Provide Input Streams: Connect multiple data sources to the In input socket.

  2. Select Output Size: Choose the number of output streams you want from the Output size dropdown.

  3. Run the Block: When executed, the block will split the input data into the specified number of outputs.

📊 Evaluation

Upon execution, this function block demultiplexes the incoming data streams, distributing them across the specified output sockets.

💡 Tips and Tricks

Handling Variable Length Inputs

Note that when connecting dynamic or variable-length input sources, ensure they match the expected output size to avoid missing data.

Combining with Mux Block

After processing data with your outputs, you can use a Mux function block to combine the data back together if needed.

Data Type Considerations

If you're using specific data types (like images or arrays), ensure that all connected inputs can be properly handled by downstream blocks to avoid type errors.

🛠️ Troubleshooting

Output Not Receiving Data

Ensure that you have correctly connected the inputs and check that your input data is properly formed and compatible with the expected types.

Dynamic Output Size Issues

If you encounter issues with the dynamically created outputs, ensure that you’re selecting a valid output size and check the connection of any additional output sockets being created.

Last updated