State machines are usually created in Model RealTime by means of graphical state chart diagrams. However, it's also possible to define them textually, using an Model RealTime specific language called "Statemachine RT" (or SRT for short). The SRT language contains all necessary state machine constructs, including a way to embedd C++ code snippets. Creating textual state machines with SRT has some advantages over using graphical diagrams:
The support for textual state machines is an optional and experimental feature that is not installed by default. To install it, mark the item Textual State Machines that is located in the Model RealTime Extra Functionality category when installing Model RealTime.