I can't seem to get the text centered between the two right angles along the path.
MWE
\documentclass{standalone}
\usepackage{tikz}
\usepackage{amsmath}
\usetikzlibrary{positioning,calc}
\begin{document}
\begin{tikzpicture}
[node distance = 2cm,
state/.style={draw, rectangle, minimum width=2cm, align=center},
>={latex},
arrow text/.style={text width=1.8cm, rectangle, align=center, font={\tiny}, node distance=1cm},
tmp/.style={coordinate}]
% Main blocks
\node [state] (init) {Initialization\\State};
\node [state, right=of init] (nonrt) {Non-Real-Time\\State};
\node [state, right=of nonrt] (rt) {Real-Time\\State};
\node [state, left=of init] (off) {Off\\State};
% Tmporary nodes for routing arrows
\node [tmp, below=of nonrt, node distance=.5cm] (tmpbelow) {};
% Arrows
\draw [->] (nonrt) -- node [arrow text, anchor=north] {text below} node [arrow text, anchor=south] {text above} (rt);
\draw [->] ($ 0.5*(nonrt.south west)+0.5*(nonrt.south) $) |- ++(0cm,-.5cm) -| node [arrow text, midway, below] {text below} ($ 0.5*(init.south) + 0.5*(init.south east) $);
\end{tikzpicture}
\end{document}
MWE output
Expected output
text below is centered along the arrow path between the two right angles.




midwaywith|-. If one wants to avoidpos=0.25, one could usenear start. See https://tex.stackexchange.com/a/29713/8650 – hpekristiansen Sep 07 '21 at 20:38