主要内容

slrtPerformanceAnalyzer

Open Simulink Real-Time Performance Analyzer

Since R2026a

Description

slrtPerformanceAnalyzer(traceFilePath) opens the Simulink® Real-Time™ Performance Analyzer and shows the tracer data from the traceFilepath file.

example

Examples

collapse all

Load the slrt_ex_osc application on the target computer and view the tracer data.

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);

Simulink Real-Time saves the tracer data in the target computer after the tracer is stopped. Download the tracer data to the host computer.

getTracerData(tg);

Simulink Real-Time saves the tracer data with the filename ftrace_slrt_ex_osc.txt in the current path. Open the Simulink Real-Time Performance Analyzer and display the tracer data.

slrtPerformanceAnalyzer("ftrace_slrt_ex_osc.txt");

Input Arguments

collapse all

Tracer data file path, specified as a character vector or string scalar.

Example: "ftraceOutput.txt"

Version History

Introduced in R2026a