| xPC Target™ | ![]() |
MATLAB® command line
get(env_collection_object, 'env_collection_object_property')
env_collection_object | Name of a collection of target objects. |
'env_collection_object_ property' | Name of a target object environment property. |
get gets the values of environment properties for a collection of target objects.
The environment properties for a target environment object collection are listed in the following table. This table includes a description of the properties and which properties you can change directly by assigning a value.
Property | Description | Writable |
|---|---|---|
CCompiler | Values are 'Watcom' and 'VisualC'. From the xPC Target™ Explorer window compiler list, select either Watcom or 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. If the path is invalid or the directory does not contain the compiler, an error message appears when you use the function updatexpcenv or build a target application. | Yes |
DefaultTarget | Contains an instance of the default target environment object (xpctarget.env). | 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 | Contains the number of target objects in the xPC Target system. Note that this is not the actual number of target PCs in the system. | No |
List the values of all the target object collection environment property values. 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: 3 List the value for the target object environment collection property CCompiler. Note that the property name is a string, in quotation marks, and not case sensitive.
get(tgs,'ccompiler') or tgs.get('CCompiler')
get(tgs,'CCompiler')
ans = VisualCxPC Target target object environment method set (env collection object)
Built-in MATLAB functions get and set
![]() | fwrite | get (env object) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |