Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

Remove (env collection object) - Remove specific xPC Target environment object

Syntax

MATLAB command line

env_collection_object.Remove('env_collection_object_name')

Description

Method of xpctarget.targets objects. Remove removes an existing xPC Target environment object from the environment collection. Note that if you remove the target environment object of the default target PC, the next target environment object becomes the default target PC.

Examples

Remove an xPC Target environment collection object from the system. Assume that tgs represents the target object collection environment.

tgs=xpctarget.targets;
get(tgs)
        CCompiler: 'VisualC'
     CompilerPath: 'd:\applications\Microsoft Visual Studio'
    DefaultTarget: [1x1 xpctarget.env]
       NumTargets: 2 
tgs.getTargetNames
ans = 
    'TargetPC1'
    'TargetPC2'
tgs.Remove('TargetPC2')
ans =
	1

See Also

xPC Target methods for the xPC Target environment collection object method xpctarget.targets, set (env collection object), get (env collection object)

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS