External mode enables Simulink® on your host computer to communicate with a deployed model on your robotics hardware during runtime. External mode allows you to tune block mask parameters and to visualize signals on your model while your model is running. For ROS Toolbox, deployed models are ROS nodes running on the target hardware that communicates with Simulink over TCP/IP.
To use external mode with ROS Toolbox models:
Open the Configuration Parameters dialog box.
On the Hardware Implementation pane,
specify the Hardware board as
Operating System (ROS). Specify related parameters in Target
In Target Hardware Resources, set the External mode parameters. Click OK.
In the model, set the Simulation mode to
Run the model.
Your model connects to the Device Address specified in the Connect to ROS Device dialog box which is used to connect to your ROS device when deploying the model.
To configure signal monitoring and data archiving, go to the Apps tab and select External Mode Control Panel. You can also connect to the target program and start and stop execution of the model code. For more information, see External Mode Simulations for Parameter Tuning and Signal Monitoring (Simulink Coder).