ControlSystems
CSI
Q1diagram67

Description

The code above creates a block diagram using the TikZ package in LaTeX. The diagram includes several components, including an input node labeled "A", a computation node labeled "B", a block node labeled "C" with the transfer function Ks+1s+5K\frac{s+1}{s+5}, another block node labeled "D" with the transfer function 2s2(s+2)\frac{2}{s^2(s+2)}, and an output node labeled "E". There are also several links between these components, including a link labeled "R(s)R(s)" from node A to node B, a link from node B to node C, a link from node C to node D, and a link labeled "C(s)C(s)" from node D to node E. Finally, there is a return link from the output node E to the computation node B.

Keywords

amsmath, amssymb, blox, tikz, Input, Comp, Link, Bloc, Output, Return.

Source Code

ControlSystems/CSI

\documentclass{standalone}
\usepackage{amsmath}  % For math
\usepackage{amssymb}  % For more math
 
\usepackage{blox}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\bXInput{A}
\bXComp{B}{A}
\bXLink[$R(s)$]{A}{B}
\bXBloc[2]{C}{$K\cfrac{s+1}{s+5}$}{B}
%\bXLink[$V_1$]{B}{C}
\bXLink{B}{C}
\bXBloc[2]{D}{$\cfrac{2}{s^2(s+2)}$}{C}
\bXLink{C}{D}
\bXOutput[4]{E}{D}
\bXLink[$C(s)$]{D}{E}
\bXReturn{D-E}{B}{}
\end{tikzpicture}
 
\end{document}
Deploy to Overleaf