External mode error 28379D
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to implement voltage control for a buck converter. I am using ADC pins on my 28379D launchpad to read the output voltage of my buck converter. I am then implementing the control as shown in figure below. I am then using the digital output pin GPIO DO to output the PWM.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221993/image.jpeg)
I am using fixed step in the solver with step size being 1e-7. I am using 1e-7 because otherwise the signal generator does not output a proper sawtooth signal. With this step size I get the following error
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221994/image.jpeg)
But if I use auto step size the external mode runs. The problem is the signal generator does not output a proper sawtooth. I get more of a triangle wave. And I dont see any output at the GPIO DO pin.
Can anyone help me sort this issue? Or you can also suggest me a different approach to implementing the control.
Thanks,
Akarsh M
0 件のコメント
回答 (1 件)
Pemendra Kumar Pardhi
2019 年 9 月 8 日
I have same problem in close loop operation of VSI when PI controller is used from discrete library. I think as per your model you need to use PID(PI and D=0) controller from C28X DMC library with selection of data type conversion after ADC scaling block.
If you have already solve this problem than provide the solution sothat it will be help full for someone
Thanks
Pemendra Pardhi
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Electrical Block Libraries についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!