Simulink Desktop Real-Time

Run Simulink models in real time on your computer

 

Simulink Desktop Real-Time™ provides a real-time kernel for executing Simulink® models on a laptop or desktop running Windows® or macOS®. It includes library blocks that connect to certain I/O devices. You can create a real-time system in Simulink with your PC or Mac computer and connect it to physical devices.

Refer to Simulink Real-Time™ for high performance real-time simulation and testing with Speedgoat™ target computer hardware.

Get Started:

Real-Time Simulation with a Laptop or Desktop

Run Simulink models in real-time on your PC or Mac computer

Real-time closed-loop simulation of Simulink models

Simulink Desktop Real-Time includes a real-time kernel that runs at the highest priority on your operating system. This real-time kernel loads I/O device drivers and establishes a connection with Simulink. The I/O device drivers execute in real time, in parallel with a Simulink simulation in normal mode.

A magnetic levitation control experiment. The model interfaces with external hardware using Analog Input and Analog Output blocks.

Improve real-time performance with Simulink Coder 

Use Simulink Coder to generate code for your algorithm model and link it with I/O device driver. The model, solver, and I/O device drivers all execute in real time.

Configuring stream input and stream output block parameters for a model.

Monitor Signals and Acquire Data

Monitor, capture, and acquire signal data in real-time

Monitoring and capturing signals

Using Simulink Desktop Real-Time with Simulink, you can capture signals from the real-time model and display them with standard Simulink Scope blocks. You can view signals within the model using graphical displays, such as gauges, scopes, and lamps.

Monitor and capture signals.

Acquiring and logging data

You can store run-time data in the MATLAB workspace using Simulink. In external mode, you can capture one or more data bursts and save the data to a MATLAB file, which can be accessed in MATLAB for additional analysis and visualization.

Set scope parameters to log to workspace.

Connecting Physical Devices

I/O driver blocks provide connections between physical devices and your model

Library of I/O driver blocks

Simulink Desktop Real-Time includes a library of I/O driver blocks that provide connections between physical I/O devices and real-time models. You can run simulations to observe how Simulink models respond to real-world behavior.

Connect I/O devices to Simulink signals to read inputs and write outputs.

I/O driver communication

Simulink Desktop Real-Time I/O driver blocks enable communication using either ASCII or binary data. Supported communication protocols include UDP for standard network connections, RS-232 for serial lines, and CAN bus for controller area networks.

Transfer data through UDP communication protocol.

Thunderbolt™ support

Thunderbolt™ is supported for connecting to I/O devices when using a Thunderbolt expansion chassis for PCIe/PCI boards or the Thunderbolt-capable HUMUSOFT® MF 644 multifunction I/O device.

Connect to I/O devices.

Latest Features

Support for CAN FD Protocol

Enables higher communication bandwidth compared to CAN

Support for CAN Silent Mode

Enable silent mode operation for CAN device boards

Append to Existing Files

Add data to an existing file on a standard device

CAN/CAN FD message bus data types

Packet Input block and Packet Output block provide support for the CAN_MESSAGE_BUS datatype and support for the CAN_FD_MESSAGE_BUS datatype in CAN FD mode

New string datatype example sldrtex_stringmessage

Demonstrates how to use string datatypes and Simulink messages and queues

See release notes for details on any of these features and corresponding functions.