Error while running Permanent Magnet Synchronous Motor Field-Oriented Control

1 view (last 30 days)
I am trying to run the example 'Permanent Magnet Synchronous Motor Field-Oriented Control', but when I run "c28069pmsmfoc_ert" in command window appears the next error: Undefined function or variable 'c28069pmsmfoc_ert'
MATLAB Version: 9.2.0.556344 (R2017a) with Embedded Coder, MATLAB Coder, Simulink Coder.
How can I solve it?
Thanks.

Accepted Answer

David Ding
David Ding on 25 Sep 2017
Hi Juan,
Please run the following command in MATLAB Command Window:
>> which c28069pmsmfoc_ert
You will likely receive an output:
'c28069pmsmfoc_ert' not found.
If this is the case, please make sure that you install the support package:
"Embedded Coder Support Package for Texas Instruments C2000 Processors"
You may find this under:
>> supportPackageInstaller
Once you have installed the support package, you will be able to open the model "c28069pmsmfoc_ert". Furthermore, when you do:
>> which c28069pmsmfoc_ert
You will likely receive an output:
C:\ProgramData\MATLAB\SupportPackages\R2017b\toolbox\target\supportpackages\tic2000\tic2000examples\c28069pmsmfoc_ert.slx
The reason you are not able to open this model is because it resides in the examples folder of the support package that is currently not installed in your case. More information about the TI C2000 support package can be found below:
Thanks,
David

More Answers (0)

Communities

More Answers in the  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!