[en] In this article, numerical methods are exploited for the design of mechatronic systems. A method is presented for the simulation of a flexible mechanism subject to the action of a digital control system. In the context of model-based control, reduction techniques of mechanical models are also discussed.