Skip to content

Commit

Permalink
Just give references for discrete-time requirements in example
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Mar 31, 2021
1 parent 6d09dbd commit 216632b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chapters/equations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -637,11 +637,9 @@ \section{Events and Synchronization}\label{events-and-synchronization}
when noEvent(x1 > 1) or x2 > 10 then // When-condition must be discrete-time
close = true;
end when;
above1 = noEvent(x1 > 1); // above1 is discrete-time variable
above1 = noEvent(x1 > 1); // Boolean equation must be discrete-time
\end{lstlisting}
The when-condition error is a direct violation of the requirement that the when-condition must be discrete-time.
The error in the equation with \lstinline!above1! is only indirect; since \lstinline!above1! requires a discrete-time solution, it cannot be solved from this equation.
Consequently, this equation cannot be solved for any variable, a structural singularity condition that will be reported in tool-specific ways.
The when-condition rule is stated in \cref{when-equations}, and the rule for a non-\lstinline!Real! equation is stated in \cref{discrete-time-expressions}.
\end{example}

Modelica is based on the synchronous data flow principle (\cref{synchronous-data-flow-principle-and-single-assignment-rule}).
Expand Down

0 comments on commit 216632b

Please sign in to comment.