This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Send net_fdm Packet to FlightGear

Transmit net_fdm packet to destination IP address and port for FlightGear session


Animation/Flight Simulator Interfaces


The Send net_fdm Packet to FlightGear block transmits the net_fdm packet to FlightGear on the current computer, or a remote computer on the network. The packet is constructed using the Pack net_fdm Packet for FlightGear block. The destination port should be an unused port that you can use when you launch FlightGear with the FlightGear command line flag:


The second port in the list, 5502, is the network flight dynamics model (fdm) port.

This block does not produce deployable code.

Determining the Destination IP Address

You can use one of several techniques to determine the destination IP address, such as:

  • Use for “this” computer

  • Ping another computer from a Windows® cmd.exe (or UNIX® shell) prompt:

    C:\> ping andyspc
    Pinging andyspc [] with 32 bytes of data:
    Reply from bytes=32 time=30ms TTL=253
    Reply from bytes=32 time=20ms TTL=253
    Reply from bytes=32 time=20ms TTL=253
    Reply from bytes=32 time=20ms TTL=253
    Ping statistics for
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 20ms, Maximum =  30ms, Average =  22ms
  • On a Windows machine, type ipconfig and use the returned IP Address:

    Windows IP Configuration
    Ethernet adapter Local Area Connection:
            Connection-specific DNS Suffix  . :
            IP Address. . . . . . . . . . . . :
            Subnet Mask . . . . . . . . . . . :
            Default Gateway . . . . . . . . . :


Destination IP address

Specify your destination IP address.

Destination port

Specify your destination port.

Sample time

Specify the sample time (-1 for inherited).

Inputs and Outputs

The input signal is the FlightGear net_fdm data packet.


See the asbhl20 for an example of this block.

Introduced before R2006a

Was this topic helpful?