主要内容

stopTracer

Stop tracer on target computer

Since R2026a

Description

stopTracer(target_object) stops the tracer from running on the Speedgoat® target computer.

If the tracer has collected data, the data is available for download to the MATLAB® development computer.

example

Examples

collapse all

Load the slrt_ex_osc application on the target computer and stop the tracer.

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 before starting the application.

startTracer(tg);
start(tg);

Stop the tracer and stop the application.

stopTracer(tg);
stop(tg);

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

Version History

Introduced in R2026a