Skip to main content
Hardware-in-the-Loop Testing for Electric Motor Control search search close

Hardware-in-the-Loop (HIL) testing has become a standard approach for motor controller development. Speedgoat test systems with configurable I/O modules and Simulink Programmable FPGAs offer a powerful and scalable platform to simulate motors and inverters in deterministic real-time. You can easily interface the virtual signals with your actual embedded motor controller. The demonstration focuses on a field-oriented controller algorithm deployed to a TI C2000 microcontroller controlling a PMSM with a two-level 3-phase inverter via CAN bus communication.

We show how to set-up the HL test bench using first using an ideal inverter model and then by deploying a high fidelity model to the FPGA. We demonstrate the entire workflow, from the controller requirements, simple controller performance assesment, current and torque ripple minimization and robustness to fault injection. At each step, we compare the results against the initial specifications and we show how to easily implement test automation.  

Topics that we cover include:

  • Deployment of an electric motor and inverter model to a Speedgoat test system
  • Minimizing current ripples for better EMC and noise characteristics
    Testing the microcontroller’s response to simulated inverter faults and other complex scenarios
  • Demonstration of rigorous test automation covering changes in the controller algorithm, motor characteristics, or external conditions, including report generation
  • HIL testing for validating against requirements

The Author

Mathieu Lu-Dac

Mathieu Lu-Dac
Application Engineer, Speedgoat

Let us help you to find the right solution for your project


Request a Configuration Proposal

Get a proposal for a real-time target
machine configured to your needs.

Request a proposal

Request a Free Workflow Demo

Curious how to accelerate control design
innovation with a modular controller hardware setup?

Request a free demo

Have Questions?

Talk to our experts about your project
and application requirements.

Contact us
Follow Speedgoat LinkedIn