Danfoss Adopts Model-Based Design to Speed Development of Power Electronics Control Systems

“Being able to contact MathWorks consultants at any time, getting answers immediately, and having our problems solved quickly was crucial to meeting our deadlines. We learned a lot when they reviewed our models and gave us guidance on how to generate the most efficient code.”


Reduce development time for power electronics control systems


Adopt Model-Based Design and automatically generate code from Simulink models verified through simulation


  • Model-Based Design established as a development process
  • Product development time reduced by up to 15%
  • Certification testing passed on first attempt

Danfoss develops products that rely on controlling power electronics with embedded software. To help meet an increased demand for its products, the Danfoss power electronics group hired new engineers and re-evaluated its embedded software development processes, which up to then had relied on hand coding. With a traditional development process and hand coding, errors remained undetected until hardware prototype and certification testing.

Recognizing the need to shorten their development cycles and reduce the number of software errors, Danfoss worked with MathWorks Consulting Services to adopt Model-Based Design, a development process for embedded software based on MATLAB® and Simulink® for modeling, simulation, and automatic code generation.

“We knew we needed a new process, but we were worried that adopting Model-Based Design would jeopardize our deadlines,” says Jens Godbersen, control engineering architect at Danfoss. “By working with MathWorks consultants, we mitigated the risk. We passed our product certification tests the first time, and reduced our time-to-market by months.”


Danfoss decided to adopt Model-Based Design to cut time to market and meet stringent quality and performance requirements for a new solar inverter in a competitive market.

They were a small team, and were hiring more engineers. Educating the team on the new process would take time. In addition, work on the new product had already begun. Model-Based Design would have to be introduced during development, and without affecting existing project deadlines.

In the new workflow, the group wanted simulation models to serve as one master source for their design. Additionally, they needed code generated from these models to be as efficient as handwritten code.

Finally, the Danfoss team needed to demonstrate the success of the new approach so that they could convince management that it would be worthwhile to invest in tools and training for Model-Based Design and expand its use across the organization.

The Danfoss VLT AutomationDrive FC302.

The Danfoss VLT® AutomationDrive FC302.


With hands-on support from MathWorks Consulting Services, Danfoss identified a plan they could follow to ensure successful adoption of Model-Based Design.

Danfoss engineers attended on-site training courses on Simulink, Stateflow®, and Embedded Coder® led by MathWorks Training Services.

The team completed a pilot project in which they rebuilt an existing software component that had been coded by hand. For the pilot, they decided to focus on three core capabilities of Model-Based Design: modeling, simulation, and code generation.

After completing the pilot project, the team fully transitioned to Model-Based Design for development of the new solar inverter.

In weekly phone calls, MathWorks consultants advised them on the best way to get started, provided feedback on early versions of the models, and helped the team apply industry best practices to maximize model reuse and improve generated code performance.

The team completed development on schedule, and the test and certification campaign progressed smoothly due to the extensive simulations the team had performed in preparation.

Following the same workflow with more engineers, the team completed development of a second product in which they reused Simulink models from the initial project.

This early success convinced Danfoss management of the effectiveness of Model-Based Design, and use of Model-Based Design is being expanded across the motor drives product development groups.


  • Model-Based Design established as a development process. “Now that we have demonstrated the success of the new workflow, more engineers are involved in Model-Based Design across the organization,” Godbersen says. “Ramp-up is easy, and we have built a library of models and a knowledge base that can be reused on future projects.”
  • Product development time reduced by up to 15%. “We completed our first solar inverter project with Model-Based Design on schedule, despite ramping up new engineers and adopting a new design process,” says Godbersen. “For our second project, we actually reduced development time by 10–15%.”
  • Certification testing passed on first attempt. “With Simulink we could run accurate simulations of the certification tests before we visited the certification lab,” Godbersen says. “As a result, we passed on the first attempt, saving six to nine months that would have been needed for additional certification tests. Because we didn’t spend much time in getting the certificates, we were able to get to market earlier, ahead of our competitors.”