Command-Line PCI Bus Ethernet Setup

If your Speedgoat target computer has a PCI bus, use an Ethernet card for the PCI bus. The PCI bus has a faster data transfer rate than the other bus types.

PCI Bus Ethernet Protocol Hardware

To install PCI bus Ethernet protocol interface hardware in your Speedgoat target computer, contact Speedgoat support.

  1. If the target computer already contains one or more Ethernet cards, to get a list of these Ethernet cards, in the Command Window, type:

    tg = slrt;
    getPCIInfo(tg, 'ethernet')
  2. Assign a static IP address to the target computer Ethernet card.

    Unlike the target computer, the development computer network adapter card can have a dynamic host configuration protocol (DHCP) address and can be accessed from the network. Configure the DHCP server to reserve static IP addresses to prevent these addresses from being assigned to other systems.

  3. Connect your target computer Ethernet card to your LAN using an unshielded twisted-pair (UTP) cable.

    You can directly connect your computers using a crossover UTP cable with RJ45 connectors. Both computers must have static IP addresses. If the development computer has a second network adapter card, that card can have a DHCP address.

Command-Line PCI Bus Ethernet Settings

With the installed PCI bus Ethernet card, to build and download a real-time application, first specify the environment properties for the development and target computers.

Before you start, ask your system administrator for the following information for your target computer:

  • IP address

  • Subnet mask address

  • Port number (optional)

  • Gateway (optional)

Use the following procedure for target TargetPC1:

  1. Create a target object for this target computer and make it the default target. In the Command Window, type:

    tg = SimulinkRealTime.addTarget('TargetPC1');
    setAsDefaultTarget(tg);

    You apply other settings to this target object.

  2. Set the IP address for your target computer. For example:

    tg.TcpIpTargetAddress = '10.10.10.15';
  3. Set the subnet mask address of your LAN. For example:

    tg.TcpIpSubNetMask = '255.255.255.0';
  4. Set the TCP/IP port (optional) to a value higher than '20000' and less than '65536'. For example:

    tg.TcpIpTargetPort = '22222';

    This property is set by default to '22222', a value higher than the reserved area (telnet, ftp, and so on).

  5. Set the TCP/IP gateway (optional) to the gateway required to access the target computer. For example:

    tg.TcpIpGateway = '255.255.255.255';

    This property is set by default to '255.255.255.255', which means that you do not use a gateway to connect to your target computer. If you connect your computers with a crossover cable, leave this property as '255.255.255.255'.

    If you communicate with the target computer from within your LAN, do not change the default setting. If you communicate from a development computer within a LAN different from your target computer, define a gateway and enter its IP address here. In particular, create a gateway if you access the target computer via the Internet.

  6. Set the bus type to 'PCI'.

    tg.TcpIpTargetBusType = 'PCI';
  7. Set the target driver to one of 'I210', 'I217', 'I8254x', 'I82559', 'X540', 'R8139', 'R8168', or 'Auto' (the default).

    tg.TcpIpTargetDriver = 'Auto';

    For target driver 'Auto', the software determines the target computer TCP/IP driver from the card installed on the target computer. If a supported Ethernet card is not installed in your target computer, the software returns an error.

  8. If the target computer has multiple Ethernet cards, follow the procedure in Command-Line Ethernet Card Selection by Index.

Repeat this procedure as required for each target computer.

The next task is Command-Line Target Computer Settings.

See Also

Related Topics