Main Content

startProfiler

Start profiler on target computer

Description

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

startProfiler(target_object,app_name) starts the profiler for the app_name application on the target computer. If the real-time application app_name is not running on the target computer, the profiling 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 profiler 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 profiler for the slrt_ex_osc before starting the application.

startProfiler(tg,"slrt_ex_osc");

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

Start the real-time application slrt_ex_osc.

start(tg);

The profiler 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 R2020b