Set Up and Configure Simulink Real-Time
For this tutorial, you must have this configuration:
Simulink® Real-Time™ software installed on the MATLAB® development computer
Speedgoat® target machine (target computer) connected to the development computer
Speedgoat I/O Blockset software installed on the development computer
For more information, see Configure Target Computer Settings by Using Simulink Real-Time Explorer.
Note
For target machines that have been used with R2020a or a previous release and have not yet been migrated to at least R2020b, contact Speedgoat support through the Speedgoat customer portal.
Configure Link Between Development and Target Computers
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 Configure Target Computer Settings by Using Simulink Real-Time Explorer.
Select the Simulink Real-Time template from the Simulink start page and create the
exampleSlrtAppmodel. 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. You can add or remove target computer definitions for explorer in this list.
To add a node representing another target computer, in the Targets Tree pane, click the Add target button.
To remove a node representing a target computer, select the node and click the Remove target button.
For more information, see Add Target Computer Definition to Explorer.
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. If there is a software version mismatch between the development and target computers, a message box prompts you to update the target computer.
If you need to modify the configuration of the target computer, 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.5.For more information, see Configure Target, Update, and Reboot.
Note
If Simulink Real-Time reports a connection issue, contact MathWorks® support. For more information, see Troubleshooting Basics and the MathWorks Support website MathWorks Help Center website.