Pipes are widely used in hydraulic and pneumatic subsystems for transferring energy or signals. Accurate prediction of pressure transients is very important in the drive and control circuits of complex fluid-line systems. Based on the approximation of Navier-Stokes equations for one-dimensional flow, a mathematical model of the pneumatic pipe with lumped parameters was developed using ordinary differential equations, which can be easily implemented in most computer programs for the simulation of complex heterogeneous engineering systems. Implemented in Matlab-Simulink software, the computer model of the pipe makes it possible to determine the influence of capacitance, inertance, resistance and heat exchange on the dynamic characteristics of the control and power circuits of pneumatic systems. An advantage of the model is that various functions can be selected to describe linear resistances and local resistances are taken into account, particularly at the inlet and outlet. Such resistances largely affect flow resistances in short tubes (up to 10 m) that can be found, e.g., in pneumatic brake systems of road vehicles. Confirmed by Kolmogorov-Smirnov test results, the consistency of the pressure curves obtained in experimental and simulation tests proves the implemented tube model to be useful for the calculations of pneumatic system dynamics.