Documentation

SimulinkRealTime.target.remscope

Remove scope from target computer

Syntax

remscope(target_object)
remscope(target_object, scope_number)
remscope(target_object, scope_number_vector)

Description

example

remscope(target_object) deletes all scopes from the target computer.

example

remscope(target_object, scope_number) deletes the scope represented by scope_number from the target computer.

example

remscope(target_object, scope_number_vector) deletes the scopes represented by the scope numbers listed in scope_number_vector from the target computer.

The method remscope has no return value. remscope does not delete the scope object that represents the scope on the development computer.

You can permanently remove only a scope that is added with the method addscope. This scope is outside the model. If you remove a scope that a scope block added inside the model, a subsequent run of that model recreates the scope.

At the target computer command line, you can remove one scope or all scopes:

remscope scope_number
remscope all

Examples

collapse all

tg = slrt;
remscope(tg)
tg = slrt;
remscope(tg,1)
tg = slrt;
remscope(tg,[1 2])

Input Arguments

collapse all

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink® Real-Time™ kernel and apply the required Ethernet link settings.

Example: tg

New scope number. This argument is optional. The default value is the next available integer in the target object property Scopes.

If you enter the scope number for an existing scope object, the result is an error.

Example: 1

Vector of new scope numbers. If you enter the scope number for an existing scope object, the result is an error.

Example: [2, 3]

Introduced in R2014a

Was this topic helpful?