主要内容

deleteTracerData

Delete tracer data from target computer

Since R2026a

Description

deleteTracerData(target_object,"-all") deletes tracer data for all real-time applications available on the Speedgoat® target computer. This operation is prohibited if the tracing service is currently running on the target computer.

deleteTracerData(target_object,app_name) deletes tracer data for the real-time application app_name on the target computer. This operation is prohibited if the tracing service for the specified application is currently running on the target computer.

example

Examples

collapse all

Load the slrt_ex_osc application on the target computer and delete the tracer data 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 before starting the application.

startTracer(tg);
start(tg);

Stop the tracer and stop the application.

stopTracer(tg);
stop(tg);

Delete the slrt_ex_osc application tracer data .

deleteTracerData(tg,"slrt_ex_osc");

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