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