]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
doc: add multirate multithread demo description
authorMichal Horn <hornmich@fel.cvut.cz>
Tue, 18 Aug 2015 10:51:10 +0000 (12:51 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 28 Aug 2015 14:15:02 +0000 (16:15 +0200)
doc/images/demo_multirate_mt.png [new file with mode: 0644]
doc/rpp_simulink.tex

diff --git a/doc/images/demo_multirate_mt.png b/doc/images/demo_multirate_mt.png
new file mode 100644 (file)
index 0000000..7d74df1
Binary files /dev/null and b/doc/images/demo_multirate_mt.png differ
index 37ba877b25cbe06c0027fbdc852ab53201c1a8fe..e4ca36692dcc14de77d25cb6733ed2a9d59f115c 100644 (file)
@@ -2421,7 +2421,7 @@ This demo will toggle LEDs on the Hercules Development Kit with
 different rate. This is implemented with multiple Simulink tasks, each
 running at different rate. In the generated code, these tasks are
 called from a singe thread and therefore no task can preempt another
-one.
+one. See Section \ref{sec-singlet-mode} for more details.
 
 The state of each LED is printed to the Serial Communication Interface
 (115200-8-N-1) when toggled.
@@ -2438,6 +2438,38 @@ The state of each LED is printed to the Serial Communication Interface
        \label{tab:multirate_st_led_desc}
 \end{center}
 
+\subsection{Multi-rate MultiTasking demo}
+\label{sec:mult-multi-thre}
+
+\begin{figure}[H]\begin{center}
+\noindent
+\includegraphics[scale=.45]{images/demo_multirate_mt.png}
+\caption{Multi-rate MultiTasking Simulink demo for RPP.}
+\end{center}\end{figure}
+
+\textbf{Description:}
+
+This demo will toggle LEDs on the Hercules Development Kit with
+different rate. This is implemented with multiple Simulink tasks, each
+running at different rate. In the generated code, every subrate task
+runs in its own thread. See Section \ref{sec-multit-mode} for more details.
+
+The state of each LED is printed to the Serial Communication Interface
+(115200-8-N-1) when toggled.
+
+\begin{center}
+       \begin{tabular}{lll}
+    \rowcolor[gray]{0.9}
+               LED & pin & rate [s] \\
+               1 & NHET1\_25 & 0.3 \\
+               2 & NHET1\_05 & 0.5 \\
+               3 & NHET1\_00 & 1.0 \\
+       \end{tabular}
+       \captionof{table}{LEDs connection and rate}
+       \label{tab:multirate_mt_led_desc}
+\end{center}
+
+
 
 \chapter{Command line testing tool}
 \label{chap-rpp-test-software}