Development times, costs and flexibility are very important factors of every technical project. Applications which must be implemented become increasingly complex. Automatic code generation is a concept which helps to reach those specifications. This book presents the development process of a digital controller for a Stirling engine by using automatic code generation. The issues treated in this book can be divided into three areas. The first one includes the installation of a controller board in the small power plant and the accompanying conversion of measured signals. The second one handles the development of a mathematical model that describes the whole system. This model was applied for building of necessary simulation environments. The last part contains the PID controller configuration and implementation. The results of three different controller tuning methods were compared and controller that provides the best performance was realized. The controller algorithm was implemented by using automated code generation concept. The generated code includes a real time operating system and is executed by a digital signal controller.