xPC Target | ![]() ![]() |
Environment Properties for Network Communication
The xPC Target environment is defined by a group of properties. These properties give xPC Target information about the software and hardware that it works with. You change some of these properties often while others you change only rarely.
After you have installed xPC Target, you can set the specific environment properties for your host and target computers. You must change these environment properties before you can build and download a target application:
The xPC Target Setup window has two sections:
If your license does not include the embedded option, the TargetBoot list is disabled (grayed-out) with Boot Floppy
as your only choice. With the xPC Target Embedded Option installed, you have the additional choices of DOSLoader
and StandAlone
.
VisualC
or Watcom
.
TCP/IP
.
You must enter the following properties with the correct values according to your LAN environment. Ask your system administrator for values to the following settings:
192.168.0.1
.
255.255.0.0
.
You enter the following properties depending on your specific circumstances:
22222
. This value should not cause any problems, because this number is higher than the reserved area (telnet, ftp, ...) and it is only of relevance on the target PC. If necessary this property value can be changed to any value higher than 20000
and less then 65536
.
255.255.255.255
. This means that you do not use a gateway to connect to your target PC.
If you communicate with the target PC from within your LAN, you may not need to define a gateway and change this setting.
If you communicate from a host PC located in a LAN different from your target PC you need to define a gateway and enter its IP address. This is especially true if you want to work over the Internet. Ask your system administrator for the IP address of the appropriate gateway.
The following properties are specific for the Ethernet card on your target PC:
NE2000
, SMC91C9X
, I82559
, RTLANCE
. This property is set by default to NE2000
.
ISA
and enter values for TcpIpISAMemPort and TcpIpISAIRQ.
You do not have to exit and restart MATLAB after making changes to the xPC Target environment, even if you change the communication between the host and target from RS232 to TCP/IP. However, you have to recreate the target boot disk, and rebuild the target application from the Simulink model.
For more information on the xPC Target Environment, see Software Environment in the xPC Target User documentation.
Your next task is to create a target boot disk. See Target Boot Disk.
![]() | Ethernet Card for an ISA-Bus | Target Boot Disk | ![]() |