A method for controlling a multi-phase rotary electric machine, the stator of which is controlled by a control bridge comprising a plurality of parallel mounted switching arms, with each arm comprising a high-side switch and a low-side switch connected together at a center tap, which is connected to a phase of said rotary electric machine, said rotary electric machine operating as a generator and being connected to an electrical network on board a motor vehicle, said method comprising:
- short-circuiting at least one phase winding of the stator when measurement of the voltage of said network exceeds a first predetermined value;
- and
- following the short-circuiting, activating a switching arm, the center tap of which is connected to said at least one short-circuited phase winding, during which:
- the intensity in the short-circuited winding is measured;
- if the measured intensity is positive, the high-side switch of said activated switching arm is moved to the closed position;
- otherwise, the high-side switch of said activated switching arm is moved to the open position.