User`s guide
getTargetNames (env collection object)
Purpose Retrieve xPC Target environment object names
Syntax MATLAB command line
env_collection_object.getTargetNames
Description Method of xpctarget.targets objects. getTar getN ames retrieves the
names of all existing xPC Target environment collection objects from
the
xpctarget.targets class.
Examples Retrieve the names of all xPC Target environment collection objects in
the system. Assume that
tgs represents the target object collection
environment.
tgs=xpctarget.targets;
get(tgs)
CCompiler: 'VisualC'
CompilerPath: 'd:\applications\Microsoft Visual Studi o'
DefaultTarget: [1x1 xpctarget.env]
NumTargets: 2
tgs.getTargetNames
ans =
'TargetPC1'
'TargetPC2'
See Also xPC Target methods for the xPC Target environment collection object
method
xpctarget.targets, set (env co lle ction object), get
(env collection object)
18-69