User`s guide
Target Environment Command-Line Interface
Changing Target PC Environment Object Defaults
By default, the first target PC environment object is the default one.
Functions such as
getxpcenv and set xpc env operate only on the de fault
target PC environment object.
To make another environment object be the default one, use the target PC
environment collection o bject m ethod
makeDefault.Type
tgs.makeDefault('TargetPC2')
Working with Particular Target P C Object
Environments
To manage the properties of a particular target PC object environment, use the
target PC object collection environment method
Item. This method retrieves
an xPC Target environment object from the
xpctarget.targets class. You
can then assign this object to a variable and manipulate that object. Type
env2=tgs.Item('TargetPC2')
env2
is now the target environment object for TargetPC2.
IfyouwanttoworkwiththedefaulttargetPCobjectenvironment,usethe
DefaultTarget property. For example,
env=tgs.DefaultTarget
With the object variables, you can manage the target PC environment object
properties. For exam ple, to get the object properties, type
env2.get
Name: 'TargetPC2'
HostTargetComm: 'TcpIp'
TargetRAMSizeMB: 'Auto'
MaxModelSize: '1MB'
TargetScope: 'Enabled'
TargetBoot: 'BootFloppy'
EmbeddedOption: 'Enabled'
SecondaryIDE: 'off'
RS232HostPort: 'COM1'
RS232Baudrate: '115200'
7-5