Simulink - DC Motor Control (result in not as expected)
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello Matlab team, I have a question here. I've followed a step-by-step on how to control DC Motor in Simulink, but I unfortunately could not get the result like the one displayed on the step-by-step website. So here are the images of the things I did with Simulink:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150747/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150748/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150751/image.jpeg)
And here is the image of the result I should get based on the manual.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150752/image.jpeg)
I hope you can help me, thanks!
0 comentarios
Respuestas (1)
Sebastian Castro
el 31 de Mayo de 2015
Notice the time values in your time axis.
In the scope block, click the gear icon (Preferences), go to the History tab and uncheck the "Limit data points to last" box. This will show you the full simulation data, which may look more like results you expect.
Also, because of the combination of high and low frequencies in the DC motor model, you have many time steps (which is why the Scope block only retains a small time window). I'd try switching the solver to one of the "stiff" solvers, like ode15s or ode23t. You can change that in Simulation > Model Configuration Parameters > Solver.
- Sebastian
0 comentarios
Comunidades de usuarios
Más respuestas en Power Electronics Control
Ver también
Categorías
Más información sobre Variable Initialization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!