Full Library / Defining_Flow / Switching / Switch_Commutator
Block Name: Switch_Commutator
- The switch commutator routes the input tokens in cyclic order to each of the output ports in order of arrival. The very first DS must waits until the control signal is available. This block has two input ports, the input port for incoming data tokens, and the control port to start the transfer of data to the output ports. There are five output ports. After a token becomes available at the control input, the token on the input port is sent to the output_a port, the second to output_b and so on. The 4 output ports are in order of execution with an expansion port (output_e).
-
- The first control signal resets the output ports to start at the first port- output_a. Each arriving DS is placed on the next output port.
-
- The parameter provides two options (Single_Sweep and Continuous_Sweep). Single sweep presents all the fifth and all following DS to the expansion port (output_e) until a control token resets the port id to output_a.
-
- Continuous sweep operates in a loop and reverts back to the first port after the expansion port has received the DS. After the first control token, the control is required only when the port order needs to be reset to start at the first port.
-
- The expansion port can connect to the input of additional commutator blocks to create more output ports and a cascading effect. For a cascading effect, the Trigger_mode must be set to Single_Sweep and a control token is passed once all the output ports have received a token.
input
public TypedIOPort input
- Input port for data tokens.
control
public TypedIOPort control
- Input port for control tokens, to reset the transfer back to output_a. The type is any type.
output_a
public TypedIOPort output_a
- Output port, type same as input.
output_b
public TypedIOPort output_b
- Output port, type same as input.
output_c
public TypedIOPort output_c
- Output port, type same as input.
output_d
public TypedIOPort output_d
- Output port, type same as input.
output_e
public TypedIOPort output_e
- Output port, type same as input.
Trigger_Mode
public StringAttribute Trigger_Mode
Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease