Build and Deploy a Real-Time Application
After you build a real-time application, use Simulink® Real-Time™ Explorer to deploy the application to a target computer and run the application in standalone mode on the target computer. For more information, see Deploy and Configure a Startup Real-Time Application.
Open an example Simulink model, for example,
slrt_ex_osc_rt
. In the Command Window, type:openExample('slrealtime/SlrtCreateAndRunRealTimeAppFromSimulinkModelExample', ... 'supportingFile','slrt_ex_osc_rt.slx')
Build the model. In the Simulink Editor, on the Real-Time tab, click Run on Target > Build Application.
Open Simulink Real-Time Explorer. In the Simulink Editor, on the Real-Time tab, click Prepare > SLRT Explorer.
From the target computers list, select a target computer and connect to it.
To deploy the real-time application, click Load Application, use the File Selector to select the application, and click Load.
Simulink Real-Time loads the real-time application on the target computer. You can start the application by using Simulink Real-Time Explorer or by using the target computer command line.