The main purpose of an electrical network is to deliver efficiently reliable electricity to consumers, Equilibrium between production and consumption is the principal objective to guarantee the stability of an electrical power system, The imbalance between electricity supply and demand of load active and reactive powers causes the increment or the drop of the grid frequency and voltage, To solve this problem, this paper proposes a control strategy based on two supervisor algorithms, These algorithms are integrated in two diesel generators inverters to participate in ancillary services, Results prove the robustness and the performance of the proposed control strategy.