- Connect the constant block to one input of the switch block.
- Connect the output of the subtract block to another input of the switch block.
- Connect the output of the relational operator block to the control input of the switch block.
- The output of the switch block will now represent your error input: the constant error vector at t = 0, and csi_desired-csi_attuale at t not equal to zero.
- https://www.mathworks.com/help/simulink/slref/clock.html?searchHighlight=clock%20block&s_tid=srchtitle_support_results_1_clock%2520block
- https://www.mathworks.com/help/simulink/slref/switch.html?s_tid=doc_ta
- https://www.mathworks.com/help/simulink/slref/relationaloperator.html?searchHighlight=relational%20operator%20block%20&s_tid=srchtitle_support_results_1_relational%20operator%20block%20