FriendOfKim

Untitled

Oct 12th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.39 KB | None | 0 0
  1. \definecolor{lightblue}{HTML}{0087EF}
  2. \tikzstyle{block} = [draw, fill=lightblue!13, rectangle,
  3.    minimum height=3em, minimum width=6em]
  4. \tikzstyle{sum} = [draw, fill=lightblue!13, circle, node distance=1cm]
  5. \tikzstyle{input} = [coordinate]
  6. \tikzstyle{output} = [coordinate]
  7. \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]
  8.  
  9. \tikzset{integrator/.pic={
  10. \draw [draw,fill=lightblue!13](0,1.5em)rectangle(0.65em,-1.5em) (0.65em,1.5em)--(3.4em,0)--(0.65em,-1.5em);
  11. }, dif/.pic={
  12. \node at (0,0) [draw, fill=lightblue!13, draw,rectangle, minimum size=1.2cm] {$\displaystyle \frac{\mathrm{d}}{\mathrm{d}t}$};}}
  13.  
  14. \begin{tikzpicture}[auto, node distance=2cm,>=latex']
  15.    \node [input, name=input] {};
  16.    \node [sum, right of=input] (sum) {};
  17.    \node [block, right of=sum] (controller) {Regulator};
  18.    \node [block, right of=controller, pin={[pinstyle]above:Disturbances},
  19.            node distance=3cm] (system) {System};
  20.    \draw [->] (controller) -- node[name=u] {$u$} (system);
  21.    \node [output, right of=system] (output) {};
  22.    \node [below of=u] (integrator) {\pic [rotate=180]{integrator}};
  23.  
  24.    \draw [->] (input) -- node {$r$} (sum);
  25.    \draw [->] (sum) -- node {$e$} (controller);
  26.    \draw [->] (system) -- node [name=y] {$y$}(output);
  27.    \draw [->] (y) |- (integrator);
  28.    \draw [->] (integrator) -| node[pos=0.99] {$-$}
  29.        node [near end] {$y_m$} (sum);
  30. \end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment