主要内容

slrtlinux.wsl.setupTarget

R2026b

Configure a WSL distribution for a Linux target device

Since R2026b

Description

target_object = slrtlinux.wsl.setupTarget(target_name) configures a WSL distribution named SLRT for the selected Linux target device and creates a Target object for access to the Linux target device.

example

Examples

collapse all

This example shows how to created a Target object tg for the selected Linux target device myWSLTarget in the WSL distribution named SLRT.

tg = slrtlinux.wsl.setupTarget('myWSLTarget');

Input Arguments

collapse all

The name of the Linux target device in the Simulink Real-Time Targets object.

Example: 'TargetVM1'

Data Types: char | string

Output Arguments

collapse all

Object that represents a Linux target device, specified as a Target object. The object provides access to methods that manipulate the Linux target device properties.

Example: tg

Version History

Introduced in R2026b