主要内容

slrtlinux.setupTarget

R2026b

Set up a target Linux device with root-capable SSH connection

Since R2026a

Description

Add-On Required: This feature requires the Embedded Coder Support Package For Real-Time Linux add-on.

tgLinuxDevice = slrtlinux.setupTarget(tgSettings,tgNetmask) sets up a target Linux® device that has a root-capable SSH connection available by using the tgSettings and tgNetmask input arguments. The tgLinuxDevice output argument names the generated Linux device Target object.

example

Examples

collapse all

Set up a Linux target device myTgLinuxDevice for Simulink® Real-Time™.

After creating a TargetSettings object and identifying the netmask of the Linux target device, set up the Linux target device by using the slrtlinux.setupTarget function.

% previously created TargetSettings object myTgSettings
% previously identified netmask of Linux device
myTgLinuxDevice = slrtlinux.setupTarget(myTgSettings,"172.21.58.68");

Input Arguments

collapse all

Provides a TargetSettings (Simulink Real-Time) object that identifies the Linux target device for Simulink Real-Time.

Example: myTgSettings

Provides the netmask address of the Linux target device.

Example: "172.21.58.68"

Output Arguments

collapse all

Provides the name of the generated Linux target device Target object.

Version History

Introduced in R2026a