Embedded coder for TI C2000 microcontrollers: Cannot open "Digital DC/DC Buck Converter Using Peak Current Mode Control" example
5 次查看(过去 30 天)
显示 更早的评论
Dear all,
I'm working on a digital controller for a DC-DC converter which uses a TI C2000 MCU. Peak current mode control is one of the control schemes I plan on implementing.
On the MathWorks website there are multiple modeling examples for the C2000 embedded coder add-on. Using the Matlab commands listed on the MathWorks site I'm able to open most examples.
However, I'm unable to open the "Digital DC/DC Buck Converter Using Peak Current Mode Control" example: https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/pcmc-example.html
I have installed all the required MathWorks products on my PC:
- -Instrument Control Toolbox
- -MATLAB
- -Simulink
- -DSP Toolbox
- -Embedded Coder
When I run the following command in the Matlab command window
>> f280049C_DCDC_Buck_PCMC
I get:
error('Unrecognized function or variable 'f280049C_DCDC_Buck_PCMC.')
Moreover:
>> openExample('texasinstrumentsc2000/PeakCurrentModeControlExample')
Gives:
Error using findExample (line 35)
Example "PeakCurrentModeControlExample" not found in
"C:\ProgramData\MATLAB\SupportPackages\R2020a\examples\texasinstrumentsc2000\examples.xml".
Error in openExample (line 30)
metadata = findExample(exampleId);
The peak current mode control example is not listed in the examples folder on my PC, although the other ones are. I have tried reinstalling the C2000 Embedded Coder add-on, but this did not fix the problem.
Does anyone know how I can open/download this example file?
I think it can be really usefull for my digital control project.
Thanks in advance.
Kind regards,
Sander
1 个评论
Ruben Galvez
2021-7-12
Same here, does anyone know the solution or how to download the example properly?
采纳的回答
Rishik Ramena
2021-7-14
This example is only available on the R2021a and later releases. For examples on your R2020a release, check out the documentation archive for R2020a. You may consider upgrading to the latest R2021a release to checkout these latest examples. Also to open the model you need to use the command as shown(you missed the open_system function):
open_system('f280049C_DCDC_Buck_PCMC');
3 个评论
zou richard
2021-10-31
could you please save as this project in R2017a, and share with me through email: zoushenjian@foxmail.com ? thanks a lot!
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!