主要内容

Get Started with Real-Time Linux

R2026b
Learn the basics of real-time Linux for on-target prototyping and virtual testing

The Embedded Coder® Support Package for Real-Time Linux® takes you from simulation to on-target prototyping on embedded or virtual real-time Linux devices.

You can deploy and run real-time applications on real-time Linux devices directly from your Simulink model. You can create, control, and instrument real-time applications using the MATLAB® API or custom apps built with App Designer.

Functions

slrealtime.setupTargetSet up a target Linux device with root-capable SSH connection (Since R2026a)
slrealtime.fmu.compileFMUSourcesCompile FMU file that contains source code (Since R2022a)
slrealtime.ProtectedModel.addTarget.addTargetAdd model protection support to Linux target device (Since R2026a)
slrealtime.ModelReference.protectAdd model protection support to Linux target device (Since R2026a)
slrtlinux.wsl.configureConfigure WSL2 on development computer with Debian distribution name SLRT (Since R2026b)
slrtlinux.wsl.getIPAddressGet IP address of WSL distribution named SLRT (Since R2026b)
slrtlinux.wsl.isRunningCheck whether WSL distribution named SLRT is running (Since R2026b)
slrtlinux.wsl.isTargetSetupCheck whether WSL distribution for Linux target device is configured for Simulink Real-Time (Since R2026b)
slrtlinux.wsl.launchStart WSL distribution named SLRT and open a terminal window (Since R2026b)
slrtlinux.wsl.setupTargetConfigure a WSL distribution for a Linux target device (Since R2026b)
slrtlinux.wsl.shutdownShut down all or selected WSL distribution on Linux target device (Since R2026b)

Blocks

CAN Receive blockCAN Receive Receive message from CAN network (Since R2026b)
CAN Transmit blockCAN TransmitTransmit message to CAN network (Since R2026b)

Topics

Featured Examples