主要内容

slrtlinux.wsl.isTargetSetup

R2026b

Check whether WSL distribution for Linux target device is configured for Simulink Real-Time

Since R2026b

Description

wsl_setup = slrtlinux.wsl.isTargetSetup() checks whether the WSL distribution named SLRT for the Linux target device is configured for use with Simulink Real-Time.

example

Examples

collapse all

This example checks the set up status of the WSL distribution named SLRT.

if slrtlinux.wsl.isTargetSetup()
    disp('WSL target is ready.')
else
    tg = slrtlinux.wsl.setupTarget('myWSLTarget');
end

Output Arguments

collapse all

The wsl_setup value is true when the WSL distribution named SLRT is configure for use with Simulink Real-Time, and the value is false if the distribution is not set up.

Example: true

Data Types: logical scalar

Version History

Introduced in R2026b