| xPC Target™ | ![]() |
Create container object to manage target PC environment collection objects
MATLAB® command line
env_collection_object = xpctarget.targets
Constructor target object collection environment container. The environment container manages the environment object (xpctarget.env) for a multitarget xPC Target™ system. (This is in contrast to the setxpcenv and getxpcenv functions, which manage the environment properties for the default target PC.) You work with the environment objects by changing the environment properties using methods.
Use the syntax
env_object = xpctarget.targets
Access properties of an env_collection_object object with env_collection_object.propertyname, env_collection_object.propertyname.propertyname, or with the get (env collection object) and set (env collection object) commands.
| Method | Description |
|---|---|
Add a new xPC Target environment collection object. | |
Retrieve all xPC Target environment collection object names. | |
Retrieve xPC Target environment collection object. | |
Set target PC environment collection object as default. | |
Remove an xPC Target environment collection object. |
Property | Description | Writable |
|---|---|---|
CCompiler | Values are 'Watcom' and 'VisualC'. | Yes |
CompilerPath | Value is a valid compiler root directory. Enter the path where you installed a Watcom C/C++ or Microsoft® Visual Studio® C/C++ compiler. | Yes |
DefaultTarget | Returns an xpctarget.env object that references the default target PC object environment. | No |
FloppyDrive | Allows you to set the 3.5-inch drive letter to the one designated by your target PC. By default, FloppyDrive is set to a:. Set this property to b: only if the target PC designates it. As necessary, set this value before creating a boot disk. Valid values are 'a:' and 'b:'. | Yes |
NumTargets | Returns the number of target PC environment objects in the container. | No |
Create an environment container object. With this object, you can manage the environment collection objects for all the targets in your system.
tgs=xpctarget.targets tgs = xpctarget.targetst = xpctarget.xpc
xPC Target methods get (env collection object) and set (env collection object)
![]() | xpctarget.ftp | xpctarget.xpc | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |