Main Content

getSTFName

Get system target file name for selected and connectable target computer

Since R2024a

Description

getSTFName(target_object) gets the system target file name for the Speedgoat® target computer identified by the Target object. The target computer must be available for connection to Simulink® Real-Time™.

example

Examples

collapse all

To configure a model with the system target file that corresponds to a selected target computer, you can use the getSTFName function.

Create a Target object for the default target computer and connect to the target computer.

tg = slrealtime;
connect(tg);

Open the model. Get the STF name. Use set_param to set the STF name.

model = 'slrt_ex_osc';
open_system(model);
modelSTF = getSTFName(tg);
set_param(model,"SystemTargetFile",modelSTF);

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2024a