xPC Target | ![]() ![]() |
Change xPC Target environment properties
Syntax
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 value. 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.
Change the host PC, serial communication port, to COM2.
See Also
The xPC Target functions getxpcenv
, updatexpcenv
, xpcbootdisk
, and xpcsetup
. The procedures Changing Environment Properties with a Graphical Interface and Changing Environment Properties with a Command-Line Interface.
![]() | getxpcpci | updatexpcenv | ![]() |