stopping simulation at t=0!!!

2 ビュー (過去 30 日間)
Mojtaba Hasanzadeh
Mojtaba Hasanzadeh 2013 年 1 月 14 日
Hello I recieve this error : "Derivative input 1 of 'sofc1/Process/TF3' at time 0.0 is Inf or NaN. Stopping simulation. There may be a singularity in the solution. If not, try reducing the step size..." and I can't use this solution: "1. Return the states of your system as follows- a) In the model editor go to Simulation-> Configuration Parameters b) Select Data Import/Export, in the 'Save to Workspace' field, check 'States' to log the states as output 2. Run the simulation. 3. Plot:
plot(tout,xout)"
because the simulation stops at t=0. How can I attach my simulink model here? please give me your email to send my model to you to check it if you can help me. Thanks
  2 件のコメント
Walter Roberson
Walter Roberson 2013 年 1 月 14 日
You might have an algebraic loop, or you might have a problem with the choice of parameters to initialize with.

サインインしてコメントする。

回答 (1 件)

Guy Rouleau
Guy Rouleau 2013 年 1 月 14 日
Use the Simulink debugger. It will allow you to probe all blocks I/O and states just before the error happens. Put a breakpoint just before the block. When it breaks, probe the blocks upstream to figure out the origin of the NaN/Inf.
Get started here if you are not familiar with the debugger:

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by