A method for switching an integrated power system between a power supply mode and an electronic load mode, wherein the integrated power system includes a DC/AC conversion module, which is electrically coupled to a device under test, the DC/AC conversion module includes a microprocessor and a power element, and the microprocessor includes a voltage control module, a current control module and a phase-locked loop,
- wherein for switching from the power supply mode to the electronic load mode, the method comprises the steps of:
- (A1) deactivating the power element by the microprocessor;
- (A2) activating the current control module;
- (A3) activating the phase-locked loop by the microprocessor and obtaining a voltage phase of the device under test;
- (A4) calculating the turn-on amount of the power element according to a current setting value and the voltage phase by the current control module;
- and
- (A5) causing the power element to generate a load current for the device under test by the microprocessor,
- wherein for switching from the electronic load mode to the power supply mode, the method comprises the steps of:
- (B1) deactivating the power element by the microprocessor;
- (B2) activating the voltage control module;
- (B3) calculating the turn-on amount of the power element according to a voltage setting value by the voltage control module;
- and
- (B4) causing the power element to input a corresponding voltage to the device under test by the microprocessor.