For this tutorial, you must have this configuration:
Simulink® Real-Time™ software installed on the development computer
Simulink Real-Time Target Support package installed on the development computer
Speedgoat target machine (target computer) connected to the development computer
To run a Simulink Real-Time model on a target computer, you must connect the development and target computers in a network.
The target network setting values are representative only. Consult your network administrator for actual values. For more information about network configuration, see Target Computer Settings.
Select the Simulink Real-Time template from the Simulink start page and create the exampleSlrtApp
model.
In the MATLAB Command Window, type:
simulink
In the Simulink Editor, open the Simulink Real-Time Explorer. In the Real-Time tab, from the targets list, click SLRT Explorer.
From the Target Computers list, select the target computer node.
To add a node representing another target computer, in the Targets pane, click the Add target button.
To remove a node representing a target computer, select the node and click the Remove target button.
If not previously configured, select the Target
Configuration tab and set the
target computer IP address
for the target computer
definition by using the Change IP Address button. For
example, Speedgoat target machines are preconfigured to address
192.168.7.1
.
Check that you have started the target computer and wait until the target computer boots the RTOS.
To connect Simulink Real-Time to the target computer, click Disconnected to toggle to Connected.
Note
If Simulink Real-Time reports a connection issue, contact MathWorks support. For more information, see the MathWorks® Support website MathWorks Help Center website.