メインコンテンツ

resetTracer

Reset tracer on target computer

Since R2026a

Description

resetTracer(target_object) resets the tracer state to READY and deletes the tracer data of all applications available on the target computer.

resetTracer(target_object,app_name) resets the tracer state to READY and deletes the tracer data for the real-time application app_name. When you start a real-time application, the tracer resets itself.

example

Examples

collapse all

Load the slrt_ex_osc application on the target computer and reset the tracer 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);

Reset the tracer for the slrt_ex_osc application.

resetTracer(tg,"slrt_ex_osc");

The tracer state resets to the READY state and the tracer data for the real-time application slrt_ex_osc is deleted.

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