File Exchange

image thumbnail

Electric Motor Control Reference Application

version 2.0.1 (120 MB) by Speedgoat Application Engineering Team
Design, prototype, and test your brushless DC motor controls using Simulink and Speedgoat hardware


Updated 07 May 2021

From GitHub

View Version History

View license on GitHub

Learn how to:
- Create accurate motor models and fine-tune controller gains by collecting data from hardware
- Monitor and control your real-time application directly from Simulink® models or with instrument panel apps
- Configure your controller model to generate compact and fast C code for any target microcontroller
- Automatically run test-cases and prove that your embedded motor controller meets requirements via
- Hardware-in-the-Loop testing

Key benefits:
- Design and test motor controls with MATLAB® and Simulink®-integrated solutions that enable you to fully adopt Model-Based Design
- Test your motor controls early and often. Cut back development costs by exposing design flaws as early as possible
- Shorten time-to-market of your motor controls by using automated code generation and automated testing
- Protect your investment by reusing the same real-time equipment to test both, early control prototypes and final embedded controllers

The Electric Motor Control demo support R2020b:

For previous MATLAB releases, please use following download links:

© 2007 – 2020 Speedgoat GmbH

Cite As

Speedgoat Application Engineering Team (2021). Electric Motor Control Reference Application (, GitHub. Retrieved .

Comments and Ratings (7)

jj rice

Peter Bouten

Nice demo. Use of motor control app in combination with variant models is helping to grasp the intended workflow.
Sad thing is that in 2020b a big change has taken place:

Error using slrt
Cannot create target object using slrt (OBSOLETE) command. Use slrealtime command.

Unfortunately it is not solved by simple replacing slrt with slrealtime. So only working in 2020a.

jj rice



Christoph Hahn

Very complete and hands-on contribution. Great!

Daniel Hediger

jj rice

MATLAB Release Compatibility
Created with R2020a
Compatible with R2020a to R2020b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!