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 Kommentar

Chirag Gupta
Chirag Gupta am 30 Dez. 2011
Try a smaller step size. Change the 'auto' to a value like 0.05

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 30 Dez. 2011

0 Stimmen

Your system is continuous. Try ode45 with variable step size first.

Weitere Antworten (1)

Fernando Loyola
Fernando Loyola am 30 Dez. 2011

0 Stimmen

Thank Fangjun for you answer, but i tried that and this was the result:
Warning: Using a default value of 0.1 for maximum step size. The simulation step size will be equal to or less than this value. You can disable this diagnostic by setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics page of the configuration parameters dialog

2 Kommentare

Fangjun Jiang
Fangjun Jiang am 30 Dez. 2011
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
Fernando Loyola am 30 Dez. 2011
very thanks :D

Melden Sie sich an, um zu kommentieren.

Communitys

Weitere Antworten in  Power Electronics Control

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by