Original scientific paperThis paper proposes a DSP based simulator for development and implementation of control algorithms. The simulator is used to control a synchronous aggregate model in real time. The simulator consists of a PC (on which a synchronous generator connected to AC network is simulated) connected through a communication channel to a DSP (on which the control algorithm is implemented). The simulator makes implementation of a control algorithm faster and easier. It also enables verification of a control algorithm in real time. Simulation results show that there are no significant differences between non-real time simulations (on a PC) and real time simulations (on a DSP based simulator). This paper also presents design and implementation of a nonlinear control algorithm for excitation control system based on the Lyapunov's direct method. Both conventional excitation control algorithm and proposed nonlinear excitation control algorithm were implemented and tested on the real time simulator. The obtained simulation results show that proposed nonlinear excitation control algorithm better damps electromechanical oscillations than conventional excitation control algorithm.Key words: Dynamic simulator, Excitation control, Real time system, Synchronous generator Razvoj i implementacija upravljačkih algoritama za sinkroni generator. U radu je prezentirana upotreba simulatora za rad u stvarnom vremenu za razvoj i implementaciju upravljačkih algoritama. Simulator je korišten za upravljanje modelom sinkronog agregata u realnom vremenu. Simulator se sastoji od osobnog računala (na kojem se simulira model generatora spojen na elektroenergetski sustav) koje je preko komunikacijskog kanala spojen na DSP (na koji je implenetiran upravljački algoritam). Simulator omogućuje bržu i jednostavniju implementaciju upravljačkog algoritma. Isto tako omogućuje verifikaciju upravljačkog algoritma u realnom vremenu. Isto tako, u ovom radu dana je izvedba i implementacija nelinearnog algoritma upravljanja uzbudom zasnovana na direktnoj teoriji Ljapunova. I klasičan i predloženi nelinearni algoritam upravljanja uzbudom su implementirani i testirani na simulatoru za rad u stvarnom vremenu. Rezultati simulacije pokazuju da sustav s predloženim nelinearnim algoritmom upravljanja uzbudom bolje prigušuje elektromehaičke oscilacije u odnosu na sustav s klasičnim algoritmom upravljanja uzbudom.Ključne riječi: dinamički simulator, regulacija uzbude generatora, sustavi za rad u stvarnom vremenu, sinkroni generator