メインコンテンツ

Simulink Desktop Real-Time

Generate real-time applications for simulations that run on a desktop computer and interface with I/O devices in the computer

Description

Use the Simulink Desktop Real-Time app to configure a model to build and run real-time applications on a desktop computer. The app configures the model to use the Simulink Desktop Real-Time code generation target and other configuration parameters for code generation. When you open the app, a Desktop Real-Time tab is added to the toolstrip. The Desktop Real-Time tab represents groups of tasks in the Simulink Desktop Real-Time workflow.

Use the Desktop Real-Time tab to perform tasks in the Simulink Desktop Real-Time workflow.

After you use the app to configure the model for Simulink Desktop Real-Time, you can perform these and more tasks from the Desktop Real-Time tab in the Simulink Editor.

Use the actions in the Mode section to select the simulation mode.

UI Control

Description

Use the Run in Kernel button to build and run the real-time application.

Compile model into real-time application and run the application on desktop computer in real time kernel mode. Monitor signals and tune parameters (external mode). For more information, see Real-Time Execution in Run in Kernel Mode.

Use the Priority button to build and run the real-time application.

Compile model into real-time application and run the application on desktop computer in real time priority mode. Monitor signals and tune parameters (external mode). For more information, see Real-Time Execution in Run in Priority Mode.

Use the Connected IO button to run the model in normal mode with I/O.

Communicate with hardware inputs and outputs in real-time (normal mode). For more information, see Real-Time Execution in Connected IO Mode.

Use the actions in the Prepare section to configure the model and tune parameters.

UI Control

Description

Us the Hardware Settings button to open the Configuration Parameters dialog box.

Configure model to run on hardware. The Configuration Parameters dialog box opens.

Use the Log Signals button to send signals to the Simulation Data Inspector.

Send signal to the Simulation Data Inspector and workspace. Select one or more signals before using this button.

Use the Add Viewer button to select signals to view.

Add a viewer to the selected signals. Select one or more signals before using this button.

Use the Test Point button to observe signals.

Allocate memory and make signals observable when using a Floating Scope. Select one or more signals before using this button.

Use the Signal Table button to manage signal logging.

Show table to manage signal logging and viewing. The Signal Table tab opens at the bottom of the Simulink Editor.

Use the Configure Logging button to configure data inport and export.

Configure logging. The Data Inport/Export tab of the Configuration Parameters dialog box opens.

Use the Control Panel button to open the External Mode Control Panel.

Launch external mode control panel. The control panel opens.

Use the Hold Updates button to toggle between hold and update parameters.

If this button is toggled on, you can defer the update of block parameters until you click Update All Parameters or toggle off this button. For more information, see Tune Parameters by Using Hold Updates and Update All Parameters.

Use the Update All Parameters button to toggle between hold and update parameters.

Update all parameters on hardware. For more information, see Tune Parameters by Using Hold Updates and Update All Parameters.

Remove Hardware Configuration

Remove hardware configuration from this model

Remove hardware configuration from this model. The code generation target is set to grt.tlc.

Use the actions in the Run in Real Time section build the model and run the real-time application.

UI Control

Description

Use the Run in Real Time button to build and run the real-time application.

Compile model into real-time application and run the application on the desktop computer in real time. Monitor signals and tune parameters. For more information, see Execute Real-Time Application in Run in Kernel Mode or Priority Mode by Using Run in Real Time.

Use the Build button to just build the real-time application.

Generate executable application. For more information, see Execute Real-Time Application in Run in Kernel Mode or Priority Mode by Using Step by Step Commands.

Use the Connect button to connect the model and the real-time application.

Connect model to application on hardware. For more information, see Execute Real-Time Application in Run in Kernel Mode or Priority Mode by Using Step by Step Commands.

Use the Start button to run the real-time application.

Start monitoring signals and tuning parameters. For more information, see Execute Real-Time Application in Run in Kernel Mode or Priority Mode by Using Step by Step Commands.

Use the Stop button to stop running the real-time application.

Stop application on hardware an disconnect model. For more information, see Execute Real-Time Application in Run in Kernel Mode or Priority Mode by Using Step by Step Commands.

Use the actions in the Review Results section instrument the model and observe outputs.

UI Control

Description

Use the Data Inspector button to open the Simulation Data Inspector.

View logged data in the Simulation Data Inspector.

Use the Logic Analyzer button to open the Logic Analyzer.

Visualize, measure, and analyze transitions and states over time in the Logic Analyzer.

The Simulink Desktop Real-Time app configures the model for Simulink Real-Time.

Open the Simulink Desktop Real-Time App

In the Apps gallery, under Real-Time Simulation and Testing, click Simulink Desktop Real-Time. The Desktop Real-Time tab opens.

Parameters

No parameters are available for this application.

Version History

Introduced in R2019b

expand all