Fixed step size in a DC Motor Simulation
이전 댓글 표시
Hi all, i have a problem with my DC motor simulation, i have simulated that in xcos (it is like simulink by scilab) and yesterday i bought Matlab and when i attempted to simulate my dc motor, it failed.
In the following captchas you can see my simulation and parameters.
This is the error message
Derivative input 1 of 'DCMotorconparametros/Transfer Fcn4' at time 2.7 is Inf or NaN. Stopping simulation. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
And the warning message is:
"Warning: Unable to determine a fixed step size based on the sample times in the model 'DCMotorconparametros', because the model does not have any discrete sample times. Picking a fixed step size of (0.1) based on simulation start and stop times. You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box. "
Thank's
댓글 수: 1
Chirag Gupta
2011년 12월 30일
Try a smaller step size. Change the 'auto' to a value like 0.05
채택된 답변
추가 답변 (1개)
Fernando Loyola
2011년 12월 30일
0 개 추천
댓글 수: 2
Fangjun Jiang
2011년 12월 30일
This is a warning message. You can either ignore it, or set up the min and max step size in the "Configuration Parameters ..." dialog.
Fernando Loyola
2011년 12월 30일
커뮤니티
더 많은 답변 보기: Power Electronics Community
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!