In this paper I present the simulator X-Plane, and PlaneMaker program, which are part of the X-Plane package. The example of the Cessna 172 model aircraft construction in the program PlaneMaker, describes a method of defining all the key elements important for a successful flight in a simulation. The base of this thesis is the development of UDP communication between the simulator X-Plane and the environment of Matlab-Simulink. The programmable part of the communication is built in C/C++ language, supplemented with elements of Matlab code, which enables the use of Simulink blocks. Four blocks were made of which two serve for the purpose of controlling the aircraft and the remaining two for flight animation. This Simulink autopilot was made for the evaluation of communication, which was used for the purpose of aircraft control.