ControlSystems
CSI
Q4diagram617

Description

This code generates a block diagram using the TikZ package in LaTeX. The diagram has four blocks: an input block labeled "A," a comparator block labeled "B," a proportional controller block labeled "G_c(s)," and a plant block labeled with a transfer function of 5s(0.5s+1)\frac{5}{s(0.5s+1)} and labeled "D." There are also two connection lines labeled with arrows between the blocks, one connecting "A" to "B" and the other connecting "B" to "C." There is an output block labeled "E" with an arrow connecting it to the plant block "D" and another connection line labeled with an arrow connecting the plant block "D" to the comparator block "B." Finally, there is a return line labeled with an arrow connecting the difference between "D" and "E" to the input block "B."

Keywords

amsmath, amssymb, blox, tikz, input, comparator, link, block, output, return, transfer function, control system.

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}
\bXLink{A}{B}
\bXBloc[2]{C}{$G_c(s)$}{B}
%\bXLink[$V_1$]{B}{C}
\bXLink{B}{C}
\bXBloc[2]{D}{$\cfrac{5}{s(0.5s+1)}$}{C}
\bXLink{C}{D}
\bXOutput[4]{E}{D}
%\bXLink[$C(s)$]{D}{E}
\bXLink{D}{E}
\bXReturn{D-E}{B}{}
%\node (Gc) at (3.25,-0.95) {$G_c(s)$};
%\node (Gs) at (5.375,-0.95) {$G(s)$};
\end{tikzpicture}
 
\end{document}
Deploy to Overleaf