In
Simulink
Real-Time Explorer, expand the node of the loaded real-time application in the
Applications pane.

On the toolbar, click the Properties button .

In the Application Configuration
workspace, under the Properties arrow, enter a new value for
Stop time. For example, enter inf and
press Enter.

The real-time application now runs until you stop it.

Enter a new value for Sample Time. For example, enter
0.00010 and press Enter.

Note

Some blocks produce incorrect results when you change their
sample time at run time. If you include such blocks in your model,
the software displays a warning message during model build. To avoid
incorrect results, change the sample time in the original model, and
then rebuild and download the model.

To start execution, click the real-time application and click the
Start button on the toolbar.

To stop execution, click the real-time application and click
the Stop button on the toolbar.

The dialog box looks like this figure.

If you specify a sample time that is too small, a CPU overload can occur. If a CPU
overload occurs, the target object property CPUOverload changes to
detected. In that case, change Fixed step
size to a larger value and rebuild the model.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.