You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\caption{Menu options when a \subsystem is selected.}
222
+
\label{FIG:subsystem_selected}
223
+
\end{subfigure}
224
+
207
225
\caption{Simulink Context Menu with context-dependant tool options visible.}
208
226
\label{FIG:contextMenu}
209
227
\end{figure}
@@ -291,7 +309,13 @@ \subsubsection{\menu{2}}
291
309
\label{fig:demo1}
292
310
\end{figure}
293
311
294
-
\newpage
312
+
%-------------------------
313
+
\subsubsection{\menu{9}}
314
+
%-------------------------
315
+
\emph{Note: This option is not available in versions prior to R2014a.}
316
+
317
+
Right-clicking on a \subsystem and then selecting \cmd{\menu{9}}, and one of the two option from the Context Menu will convert a \subsystem block into a \simfunc. This will prompt the user for a function name, and perform several functions to reconfigure the \subsystem. This includes converting any \inport/\outport blocks to \argin/\argout blocks, adding a \trigger block, and setting various parameters.
318
+
295
319
%-------------------------
296
320
\subsubsection{\menu{4}}
297
321
%-------------------------
@@ -435,13 +459,6 @@ \subsubsection{\menu{5} and \menu{6}}
435
459
\label{FIG:simulinkinterface}
436
460
\end{figure}
437
461
438
-
\paragraph{Warnings}
439
-
\begin{enumerate}
440
-
\item This feature is only available for versions R2017b and newer. The Context Menu will have this option disabled for earlier versions. This is because the \emph{function visibility} parameter (\ie scoping) was not introduced for \simfunc{s} until R2017b.
441
-
442
-
\item If a \simfunc is moved and one or more \simfunccaller{s} with the same prototype exist within its previous scope, a warning will appear in the Command Window. It is recommended that the user ensure all \simfunccaller{s} still correctly call the \simfunc. Automatic updating of \simfunccaller blocks is planned for a future version of this tool.
443
-
\end{enumerate}
444
-
445
462
%-------------------------
446
463
\subsubsection{\menu{8}}
447
464
%-------------------------
@@ -479,7 +496,13 @@ \subsubsection{\menu{7}}
479
496
%---------------------------------------
480
497
481
498
\subsection{Errors and Warnings}
482
-
Any errors or warnings during tool use will be visible in the \matlab Command Window.
499
+
Any errors or warnings during tool use will be visible in the \matlab Command Window or as pop-up windows.
500
+
501
+
\begin{enumerate}
502
+
503
+
504
+
\item If a \simfunc is moved and one or more \simfunccaller{s} with the same prototype exist within its previous scope, a warning will appear in the Command Window. It is recommended that the user ensure all \simfunccaller{s} still correctly call the \simfunc. Automatic updating of \simfunccaller blocks is planned for a future version of this tool.
505
+
\end{enumerate}
483
506
484
507
\subsection{Limitations}
485
508
A \Simulink model can depend on or interact with other files and elements via the use of Callbacks\footnote{\url{https://www.mathworks.com/help/simulink/ug/model-callbacks.html}} and S-Functions\footnote{\url{https://www.mathworks.com/help/simulink/sfg/what-is-an-s-function.html}}. Identifying these is not currently supported by the tool.
0 commit comments