User`s guide

setxpcenv
5-27
5setxpcenv
Purpose Change xPC Target environment properties.
Syntax MATLAB Command Line
setxpcenv('property_name’, 'property_value')
setxpcenv('prop_name1', 'prop_val1', 'prop_name2', prop_val2')
setxpcenv
Arguments
Description Function for environment properties. Enter new environment properties. If the
new value is different from the current value, the property is marked as having
a new values. Use the function
updatexpcenv to change the current properties
to the new properties.
The function
setxpcenv works similarly to the function set of the MATLAB
Handle Graphics system. The function
setxpcenv must be called with an even
number of arguments. The first argument of a pair is the property name, and
the second argument is the new property value for this property.
Using the function
setxpcenv without arguments returns a list of allowed
property values in the MATLAB window.
Examples List the current environment properties. For a description of properties and
allowed values, see “Environment Properties” on page 5-3.
setxpcenv
Change the host PC, serial communication port, to COM2.
setxpcenv(’HostCommPort’,’COM2’)
See Also The xPC Target functions getxpcenv, updatexpcenv, xpcbootdisk, and
xpcsetup. The procedures “Changing Environment Properties with Graphical
property_name Not case sensitive. Property names can be shortened
as long as they can be differentiated from the other
property names.
property_value Character string. Type setxpcenv without
arguments to get a listing of allowed values. Property
values are not case sensitive.