This example system shows how the resynchronization controller is used to connect Generator 2 back to the grid even under the presence of noise. Note that at 2 seconds, a signal is triggered to equalize voltage magnitudes on buses 3 and 4.
Simulate the system for 50 seconds. Variables of interest are:
BG1.v
B4.v
G1.gen.SPEED
G2.gen.SPEED
Note the behavior of those variables before and after the connection of generator G2 to the main grid.