Hello!<br><br>I need to make an arrow returning to the same box it comes from. I would also like to apply a label to that arrow.<br><br>I have a \psidiabox representing a 'wait'-function. <br>\ncline lookes like crap, because it makes an arrow straight across the box, and \ncbar does not allow labeling? <br>
Suggestions?<br><br> \psset{shadowcolor=black!70}% <br> \begin{psmatrix}[rowsep=0.5,colsep=0] <br> \label{flow:sync}<br> \psovalbox[fillstyle=solid,fillcolor=blue]{Start} \\<br> \psframebox[shadow=true]{Start reception cycle and counter} \\ <br>
\psdiabox[fillstyle=solid, fillcolor=blue]{Counter = 70ms ?} \\<br> <br> \psframebox[shadow=true]{Collect results} \\<br> \psframebox[shadow=true]{Start new reception cycle and restart counter} \\ <br>
\psdiabox[fillstyle=solid,fillcolor=blue]{Received a pulse?} & <br> \psframebox[shadow=true]{Out of sync, counter += $\delta$} \\ <br> \psdiabox[fillstyle=solid, fillcolor=blue]{Counter = 70ms ?} \\<br>
\psframebox[shadow=true]{Collect results} \\<br> \psframebox[shadow=true]{Start new reception cycle and restart counter} \\<br> \psdiabox[fillstyle=solid,fillcolor=blue]{Received a pulse?} &<br> \psframebox[shadow=true]{Out of sync, Counter += $\delta$}\\ <br>
\psframebox[shadow=true]{Sync is OK, tune} \\<br> \psdiabox[fillstyle=solid, fillcolor=blue]{Need tuning?} \\<br> \psframebox[shadow=true]{Counter $\pm=\frac{\delta}{4}$} \\<br> &\psframebox[fillstyle=solid, fillcolor=green, shadow=true]{Tuning is good}<br>
% Links <br> \ncline{->}{1,1}{2,1} <br> \ncline{->}{2,1}{3,1} <br> \ncline{->}{3,1}{3,1} % Not looking good..<br> \ncline{->}{3,1}{4,1}>{\textcolor{green}{Yes}}<br> \ncline{->}{4,1}{5,1}<br>
\ncline{->}{5,1}{6,1} <br> \ncline{->}{6,1}{6,2}^{\textcolor{red}{No}} <br> \ncbar[angleA=0, armB=6, nodesepB=0]{->}{6,2}{3,1}<br> \ncline{->}{6,1}{7,1}>{\textcolor{green}{Yes}}<br>
\ncline{->}{7,1}{8,1}>{\textcolor{green}{Yes}}<br> \ncline{->}{8,1}{9,1}<br> \ncline{->}{9,1}{10,1}<br> \ncline{->}{10,1}{10,2}^{\textcolor{red}{No}}<br> \ncbar[angleA=0, armB=6.5, nodesepB=0]{->}{10,2}{3,1}<br>
\ncline{->}{10,1}{11,1}>{\textcolor{green}{Yes}}<br> \ncline{->}{11,1}{12,1}<br> \ncline{->}{12,1}{13,1}<{\textcolor{green}{Yes}}<br> \ncline{->}{12,1}{14,2}>{\textcolor{red}{No}}<br>
<br> \ncbar[angleA=180, armB=2.5, nodesepB=0]{->}{13,1}{7,1}<br> \ncbar[angleA=180, armB=3, nodesepB=0]{->}{14,2}{7,1} <br> \end{psmatrix}<br><br>Regards, Andreas<br>