User`s guide
7 Working with Target PC E nvironments
Adding Tar get PC
Environment Collection Objects
To add a target PC
environment collection o bject, use the target PC
environment col
lection object meth od
add. In the MATLAB window, type
tgs.Add
Check that an a
dditional target P C environment collection object has been
added. Type
tgs.get
CCompiler: 'VisualC'
CompilerPath: 'c:\Microsoft Visual Studio'
DefaultTarget: [1x1 xpctarget.env]
NumTargets: 3
Removing T
arget PC Environment Collection Objects
To delete a
target PC environment collection object, use the environment
collecti
on object method,
Remove,ofthetgs object. In the MATLAB window,
type
tgs.Remove('TargetPCName')
Getting
Target PC Environment Object Names
By defa
ult, each time you add a target PC environment object, xPC Target
names t
hat object with the string
TargetPCN, where N increments with each
subseq
uent target PC environment o bject with that base name.
To get
a target PC environment object, use the target PC environment
colle
ction object method
getTargetNames.Type
tgs.getTargetNames
ans =
'TargetPC1'
'TargetPC2'
'TargetPC3'
You
can change a target PC environment object name thro u gh the xPC
Ta
rget E xplorer, or programmatically by setting the
Name property of the
en
vironment object.
7-4