I am trying to draw the diagram in the attached picture. I have not been able to accomplish two tasks after several hours. Thank you for your help
- Write the equation shown below in the plant rectangle box.
\dot{x} = f(x, \alpha(x, \theta)) \\
y = h(x)
\end{align*}
- Attach a straight line in the middle of the line joining the "sum" and "times" node as shown in the attached picture.
The Figure I am trying to draw:

My code
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows}
\usetikzlibrary{backgrounds,fit,shapes}
\begin{document}
\begin{figure}[ht]
\centering
\begin{tikzpicture}
% Sum shape
\node[draw=black,
circle,
minimum size=0.8cm,
% fill=green!10
] (sum) at (0,0){$\large + $};
% Integrator
\node [draw=black,
% fill=green,
minimum width=1.5cm,
minimum height=1.2cm,
right=1cm of sum,
] (Integrator) {\large $\frac{k}{s}$};
% low pass filter
\node [draw=black,
% fill=green,
minimum width=1.5cm,
minimum height=1.2cm,
right=1cm of Integrator,
] (lowfilter) {\large $\frac{\omega_l}{s + \omega_l}$};
% times shape
\node[draw=black,
circle,
minimum size=0.8cm,
right=1cm of lowfilter,
] (times){$\large \times$} ;
% High pass filter
\node [draw=black,
% fill=green,
minimum width=1.5cm,
minimum height=1.2cm,
right=1.5cm of times,
] (highfilter) {\large $\frac{s}{s + \omega_h}$};
%======================================================================
% I want to write equation inside this rectangle
%\begin{align}
% \dot{x} = f(x, \alpha(x, \theta)) \
% y = h(x)
%\end{align}
% Plant
\node [draw=black,
% fill=green,
minimum width=4cm,
minimum height=2cm,
above=2cm of times,
] (plant) {\large $\dot{x} = f(x, \alpha(x, \theta)) $ };
% ] (plant) {\begin{align}
% \dot{x} = f(x, \alpha(x, \theta))
% \end{align}}; % $\dot{x} = f(x, \alpha(x, \theta)) $ };
\draw[-stealth] (highfilter.west) -- (times.east)
node[midway,above]{$y -\eta $};
\draw[-stealth] (times.west) -- (lowfilter.east);
% node[midway,above]{};
\draw[-stealth] (lowfilter.west) -- (Integrator.east)
node[midway,above]{$\xi$};
\draw[-stealth] (Integrator.west) -- (sum.east)
node[midway,above]{$\hat{\theta}$};
\draw[-stealth] (sum.north) |- (plant.west);
\draw[-stealth] (plant.east) -- ++ (4,0)
nodenear end{}node[near end,above]{$y$};
\draw[-stealth] (output.center) |- (highfilter.east);
\draw[stealth-stealth] (times.south) --++ (0, -1) -| (sum.south)
node[midway](connector){};
%\draw[-stealth] (connector.center) --++ (0, -1);
\end{tikzpicture}
\caption{Caption}
\label{fig:my_label}
\end{figure}
\end{document}


alignedinstead ofalign(orgatheredif you don't want alignment), i.e. the inline versions of the math environments. You could also specify atext widthfor the node which would make the "normal" environments work again but I don't see a reason to do it that way. – Qrrbrbirlbel Dec 20 '22 at 18:15coordinate[near start, pin=below:{$\alpha\sin \omega t$}]between-|and(sum.south). If it complains, give the coordinate a name. (Or just use a named coordinate and draw a separate line and node in relation to it.) – Qrrbrbirlbel Dec 20 '22 at 18:51