Rational Rhapsody allows you to integrate MathWorks Simulink models into Rational Rhapsody designs. MathWorks Simulink models are represented as "Simulink blocks" in the UML model, and these blocks can interact with Rational Rhapsody objects, parts, or other Simulink blocks.
As system engineers you have to model many aspects of dynamic systems like requirements, use cases, structure, behavior of controllers, behavior of plants, and so on. In order to validate the models, you have to simulate the models to see if the models perform as expected. Rhapsody provides a simulation mechanism for discrete or event driven systems.
The simulation feature models Rhapsody discrete subsystems as regular SysML blocks with statechart or activity behavior. The continuous subsystems are modeled in Rhapsody as 'whitebox' 'SimulinkBlock' with a reference to the Simulink model they represent. You can create a builder class containing parts of the Rhapsody blocks and the SimulinkBlocks, and from this builder class, you can create a Simulink model in which all Rhapsody's blocks are transformed into a S-function. After that, you can simulate the system in Simulink using its variable step solving.
The following topics will present an example of how you can activate the simulation feature for dynamic models, and run the simulation of a SysML model with Mathworks Simulink. The example used is called 'CruiseControlSystem' and describes the operation of a Cruise Control System inside a car.