Create a stimulus profile and a real-time sequence that incorporates multitasking, which executes multiple parallel tasks.
This real-time test turns on a car engine, sets the engine speed to 2500 RPM, and holds this speed for 25 seconds. It then raises the engine speed to 8000 RPM and holds this speed for another 25 seconds. In addition to controlling the engine speed, the sequence monitors engine temperature. If the engine temperature exceeds 110 degrees, the engine shuts down and the sequence aborts.
Deploy the Engine Demo—Deploy the engine demo's system definition before running a stimulus profile.
Create a multitasking real-time sequence—Create a real-time sequence that will warm-up and monitor the demo engine in separate tasks.
Create a stimulus profile—Configure a stimulus profile to execute a multitasking real-time sequence.
Run the stimulus profile—Compile and run the stimulus profile to see the real-time sequence interact with the Engine Demo.