Hauptinhalt

startTracer

Start tracer on target computer

Since R2026a

Description

startTracer(target_object) starts the tracer on the Speedgoat® target computer. If there is no application currently running on the target computer, the tracing request is kept on hold and it starts automatically when an application starts running.

startTracer(target_object,app_name) starts the tracer for the app_name application on the target computer. If the real-time application app_name is not running on the target computer, the tracing request is kept on hold and starts as soon as the application starts running.

example

Examples

collapse all

Load the slrt_ex_osc application on the target computer and start the tracer for a specific application.

Open, build, and download the real-time application.

tg = slrealtime;
modelSTF = getSTFName(tg);
modelName = "slrt_ex_osc";
openExample(modelName);
set_param(modelName,"SystemTargetFile",modelSTF);
slbuild(modelName);
load(tg,modelName);

Start the tracer for the slrt_ex_osc before starting the application.

startTracer(tg,"slrt_ex_osc");

Simulink Real-Time holds the tracer start request until the application starts.

Start the real-time application slrt_ex_osc.

start(tg);

The tracer starts after the application begins running on the target computer.

Input Arguments

collapse all

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

Example: tg

Real-time application MLDATX file name that you build from the model, specified as a character vector or string scalar.

Example: "slrt_ex_osc"

Version History

Introduced in R2026a