Multi Port Switch
This function block provides a mechanism to switch between various input sources based on a reference number. It allows users to dynamically choose from several inputs.
📥 Inputs
Switch
A number used to determine which input to output.
Input 0
The first possible input connection.
Input 1
The second possible input connection.
Additional input connections can be added, allowing you to switch up to 20 inputs based on the selected switch number.
📤 Outputs
Generic
This output provides the selected input based on the switch value.
🕹️ Controls
Number of inputs
A dropdown menu that allows you to select the total number of inputs available for the switching operation.
🎨 Features
Dynamic Input Switching
Users can easily change the input source being utilized during runtime.
Customizable Inputs
The number of available input sockets can be adjusted dynamically based on user selection.
📝 Usage Instructions
Select Number of Inputs: Use the dropdown to set the number of inputs you want to work with, ranging from 2 to 20.
Connect Inputs: Link your desired input sources to the appropriate input sockets (
Input 0
,Input 1
, etc.).Set Switch Value: Provide a number through the
Switch
input to determine which of the inputs should be output.Evaluate: Run the block to examine the output from the chosen input based on the switch value.
📊 Evaluation
When executed, the block will output the data from the input corresponding to the value provided on the Switch
.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated