Contenuto principale

slrealtime.ProtectedModel.addTarget

R2026b

Add model protection support to Linux target device

Since R2026a

Description

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

slrealtime.ProtectedModel.addTarget(target_object,model_name) adds model protection support for the Linux target device represented by the target_object to the model model_name. This Linux target device (as identified by the System Target File) must be unique in the protected model. The protected model and the unprotected model from which you built the real-time application must be present on the MATLAB path. The protected model must have been created with the Modifiable option enabled. For more information, see Model Protection.

example

Examples

collapse all

Add model protection support for the Linux target device to the protected model SLXP file..

% previously created Target object myLinuxTgDevice
% the protected and unprotected models named myProtectedModelName 
% . . . are available on the MATLAB path
addTarget(myLinuxTgDevice, myProtectedModelName);

Input 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

Example: 'slrt_ex_osc'

Data Types: char | string | handle

Version History

Introduced in R2026a