xPC Target | ![]() ![]() |
Changing Environment Properties with Command Line Interface
xPC Target lets you define and change different properties. These properties include, the path to the C/C++ compiler, the host COM-port, the logging buffer size, and many others. Collectively these properties are known as the xPC Target environment.
You can use the command line functions to write an M-file script that accesses the environment settings according to your own needs. For example, you could write an M-file that switches between two targets.
The following procedure shows how to change the COM port property for your host PC from COM1 to COM2:
The up-to-date column shows the values that you have changed, but have
not updated.
HostTargetComm |
:RS232 |
up to date |
Making changes using the function setxpcenv
does not change the current
values until you enter the update command.
The environment properties you changed with the function setxpcenv
become the current values.
HostTargetComm |
:RS232 |
up to date |
![]() | Changing Environment Properties with Graphical Interface | Creating a Target Boot Disk with Graphical Interface | ![]() |