Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. \documentclass{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{calc}
  4. \usepackage{relsize}
  5. \usetikzlibrary{shapes,arrows}
  6.  
  7. \begin{document}
  8.  
  9. \tikzstyle{block} = [draw, fill=blue!20, rectangle,
  10. minimum height=3em, minimum width=6em]
  11. \tikzstyle{sum} = [draw, fill=blue!20, circle, node distance=1cm]
  12. \tikzstyle{input} = [coordinate]
  13. \tikzstyle{output} = [coordinate]
  14. \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]
  15.  
  16. \begin{tikzpicture}[auto, node distance=2cm,>=latex']
  17. % We start by placing the blocks
  18. \node [input, name=input] {};
  19. %\node [block, right of=input, node distance=3cm] (controller) {Tracking Controller};
  20. \node [sum, right of=input,node distance=3cm] (sum) {};
  21.  
  22. \node [block, right of=sum,
  23. node distance=3cm] (system) {$\frac{\omega_n^2}{s^2+2\zeta\omega_ns+\omega_n^2}$};
  24. % We draw an edge between the controller and system block to
  25. % calculate the coordinate u. We need it to place the measurement block.
  26. %\draw [->] (controller) -- node[name=u] {$u$} (system);
  27. \node [output, right of=system,node distance=5cm] (output) {};
  28. \node [block, below of=system] (measurements) {$\frac{\Gamma_1s+\Gamma_2}{s^2+2\Psi \omega_c s+\omega_c^2}$};
  29.  
  30. %add some texts below block
  31. \node [below of = system ,node distance=0.75cm] {\tiny Undamped Resonant System};
  32. \node [below of = measurements ,node distance=0.75cm] {\tiny PVPF Controller};
  33.  
  34. % Once the nodes are placed, connecting them is easy.
  35. \draw [draw,->] (input) -- node {$r$} (sum);
  36. %\draw [->] (controller) -- node {$r$} (sum);
  37. \draw [->] (sum) -- node {$e$} (system);
  38. \draw [->] (system) -- node [name=y] {$y$}(output);
  39. \draw [->] (y) |- (measurements) ;
  40. \draw [->] (measurements) -| node[pos=0.99] {$+$}
  41. node [near end] {$y_m$} (sum);
  42. \end{tikzpicture}
  43. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement