| xPC Target™ | ![]() |
MATLAB command line
remscope(target_object, scope_number_vector) target_object.remscope(scope_number_vector) remscope(target_object) target_object.remscope
Target PC command line
remscope scope_number remscope 'all'
target_object | Name of a target object. The default name is tg. |
scope_number_vector | Vector of existing scope indices listed in the target object property Scopes. |
scope_number | Single scope index. |
If a scope index is not given, the method remscope deletes all scopes on the target PC. The method remscope has no return value. The scope object representing the scope on the host PC is not deleted.

Note that you can only permanently remove scopes that are added with the method addscope. This is a scope that is outside a model. If you remove a scope that has been added through a scope block (the scope block is inside the model), a subsequent run of that model creates the scope again.
Remove a single scope.
remscope(tg,1)
or
tg.remscope(1)
Remove two scopes.
remscope(tg,[1 2])
or
tg.remscope([1,2])
Remove all scopes.
remscope(tg)
or
tg.remscope
xPC Target target object methods addscope and getscope.
xPC Target M-file demo scripts listed in xPC Target Demos.
![]() | removefile | remsignal | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |