私はこの絵の後のSimulinkダイアグラムを作成するために持っていた:Simulinkモデルのエラー
私の答えはこの1つである:
私はいくつかの値を与えてきましたa
,b
とc
(3,4,5など)ですが、実行しようとすると次の警告が表示されます。
Warning: The model 'ex2_2' does not have continuous states, hence Simulink is using the solver 'VariableStepDiscrete' instead of solver 'ode45'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or by setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog
Warning: 'ex2_2/Unit Delay' is discrete, yet is inheriting a continuous sample time; consider replacing unit delay with a memory block. When a unit delay block inherits continuous sample time, its behavior is the same as the memory block. Unit delay block's time delay will not be fixed and could change with each time step. This might be unexpected behavior. Normally, a unit delay block uses discrete sample time. You can disable this diagnostic by setting the 'Discrete used as continuous' diagnostic to 'none' in the Sample Time group on the Diagnostics pane of the Configuration Parameters dialog box. "
と出力(範囲)それだけステップ信号です...
私はここで間違っているところ私は知りません。
モデル設定ダイアログで離散時間の固定ステップソルバーを指定するにはどうすればよいですか?申し訳ありませんが、私はsimulinkにちょっと新しいです... –
@LaurentiuAdrianParaschiv大幅に変更されていない限り(私はR2010aにあります)、モデルの設定ダイアログ(Ctrl + E)を開きます。左側で、設定カテゴリを選択できます。 「ソルバー」を選択します。次に、右側の「ソルバーオプション」で、「固定ステップ」**タイプ**、「離散時間」**ソルバー**を選択します。さらに、サンプル時間を明示的に指定することもできます。 「auto」に設定すると、Simulinkは合計50ステップを取るようにサンプル時間を選択します。より良いスコープ出力を得るためには、もっと多くのものを必要とするかもしれません。 –
これで私に次のエラーが表示されます。モデルに離散サンプル時間がないため、モデルのサンプル時間に基づいて固定ステップサイズを決定できません。 'ex2_2'固定ステップの選択 シミュレーションの開始および停止時間に基づいて(0.2)のサイズ。この診断を無効にするには、 コンフィグレーションパラメータ ダイアログボックスのソルバーペインで固定ステップサイズを明示的に指定するか、または[自動ソルバーパラメータ選択]診断を[なし]に設定します。 ソルバーグループ[構成パラメータ]ダイアログボックス。 –