The invention discloses an engine hardware-in-the-loop test method and
system. The method comprises the steps that a real-time processor receives a
simulation test instruction carrying
simulation model setting parameters, a real-time
simulation composite model is adopted to simulate engine test working conditions corresponding to the simulation model setting parameters, engine measurement signals are obtained, and the engine measurement signals are sent to an
engine control unit, the real-time simulation composite model comprises a subsystem simulation
Gaussian model and a subsystem simulation
mean value model; the
engine control unit receives the engine measurement
signal, processes the engine measurement
signal by adopting a to-be-tested control program to obtain a
target control signal, and sends the
target control signal to the real-time processor; and the real-time processor receives the
target control signal, adjusts the model operation state according to the target
control signal by adopting the real-time simulation composite model, and obtains a
simulation test operation result. According to the method, in the testing process, the simulation calculation precision is considered, and the real-time performance is guaranteed.