The invention discloses a
new energy grid-connected hardware-in-loop
simulation test method and
system, and the method comprises the steps: generating a sinusoidal
signal according to a preset
signal parameter through an IO precision checking module, calculating the amplitude and frequency errors, and correcting a
simulation model through an IO configuration module during the overrun, thereby effectively solving the problems of
signal transmission misalignment and large test result fluctuation caused by IO drift. Meanwhile, by means of a test type
lookup table module and an expected
voltage generation module, a target
power grid voltage waveform is automatically generated according to preset fault types, phases and time length parameters, port
voltage is adjusted through an IO configuration module, an interaction test with a
new energy controller is completed, the fault triggering moment is accurately controlled, and the fault triggering efficiency is improved. And the problem of unreliable test result caused by triggering randomness is avoided. According to the method, IO precision automatic checking and fault voltage waveform automatic generation are realized, the accuracy and consistency of test results are greatly improved, and the
new energy grid-connected hardware-in-loop
simulation test and comparison efficiency are remarkably improved.