Main Content

stopProfiler

Stop profiler on target computer

Description

stopProfiler(target_object) stops the profiler from running on the Speedgoat® target computer.

If the profiler 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 profiler.

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

startProfiler(tg);
start(tg);

Stop the profiler and stop the application.

stopProfiler(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 R2020b