Main Content

Real Time

Slow down simulation time close to real time

Add-On Required: This feature requires the Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller add-on.

Library

Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller/Utilities

  • Real Time block

Description

Place this block in your model to slow down the simulation time close to the real time. To specify the ratio between the actual time and the simulation time, use the time scaling factor parameter in the block.

Note

The Real Time block will be deprecated in the next release of Simulink® Coder™ Support Package for ARM® Cortex®-based VEX® Microcontroller. Instead, you can use the Simulation Pacing option in the Simulink Editor.

Parameters

Time Scaling Factor

Enter the time scaling factor to slow down the simulation speed to be close to the real-time.

For example, when you a enter a time scaling factor as 1, one simulation second runs in 1 second of real time. The simulation time is the same as real time.

When you enter a time scaling factor as 5, one simulation second runs in 5 seconds of real time. The simulation time is five times slower than real time.