“…Modeling of the control systems operation is done by replacing a continuous regulator with a digital one, which is implemented in software as a digital state machine in a micro regulator, as well as by varying the time intervals between the variation of the state machine states. Models of the synchronous generator and diesel engine excitation system developed in the Matlab Simulink dataset [27,28] are presented in Figure 2. The reference value of the excitation voltage is set at the input Vref of the adder, and the actual value of the generator voltage is input to the input Vsdq, after which a positive sequence voltage is formed, which is fed to the input of the low-pass filter, which is represented by a 1 st -order aperiodic link with a time constant of 0.02 s, which corresponds to the period of mains voltage.…”