From: Michal Horn Date: Tue, 18 Aug 2015 10:51:10 +0000 (+0200) Subject: doc: add multirate multithread demo description X-Git-Url: http://rtime.felk.cvut.cz/gitweb/jenkicar/rpp-simulink.git/commitdiff_plain/100e7abf6864968b58d8fa33e0bc26724d783068 doc: add multirate multithread demo description --- diff --git a/doc/images/demo_multirate_mt.png b/doc/images/demo_multirate_mt.png new file mode 100644 index 0000000..7d74df1 Binary files /dev/null and b/doc/images/demo_multirate_mt.png differ diff --git a/doc/rpp_simulink.tex b/doc/rpp_simulink.tex index 37ba877..e4ca366 100644 --- a/doc/rpp_simulink.tex +++ b/doc/rpp_simulink.tex @@ -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}