Simscapeのエラー文
Show older comments
電流から抵抗を求め、可変抵抗に入力したいです。
Simlink上では不可能なのでしょうか?
[ functionの中身 ]
function R = fcn( I )
R = I * 10;
end
[エラー文]
シミュレーションの実行中にエラーが発生したため、シミュレーションを終了しました
原因:
- ['Test_Erectrical_2/Solver Configuration1']: 初期条件の求解が収束しませんでした。
- 一部の変数の値に関して、解決に十分な情報がモデルから得られない場合があります。具体的なアドバイスは以下のとおりです。 関係するすべてのコンポーネントおよびノード アクロス変数1 つ以上の変数の解を求めることができません: 'Current_Sensor1.I' (I) 'Current_Sensor1.i1' (電流) 'Current_Sensor1_I0' (Current_Sensor1_I0) 'Current_Sensor2.I' (I) 'Current_Sensor2.i1' (電流) 'Current_Sensor2_I0' (Current_Sensor2_I0) 'V.i' (電流) 'Variable_Resistor.i' (電流) 1 つ以上の構成要素から成る方程式 (非線形方程式を含む) が依存または矛盾している可能性があります。これにより、過渡的な初期化で問題が発生する場合があります。関係する構成要素は次のとおりです: 関係するすべてのコンポーネント'Test_Erectrical_2/Current Sensor1'方程式の場所: 'C:\Program Files\MATLAB\R2023b\toolbox\physmod\simscape\library\m\+foundation\+electrical\+sensors\current.ssc' (31 行) 'Test_Erectrical_2/Current Sensor2'方程式の場所: 'C:\Program Files\MATLAB\R2023b\toolbox\physmod\simscape\library\m\+foundation\+electrical\+sensors\current.ssc' (31 行) 'Test_Erectrical_2/V'方程式の場所: 'C:\Program Files\MATLAB\R2023b\toolbox\physmod\elec\library\m\+ee\+additional\+spice_sources\volt_dc.sscp' (行番号情報なし) 'Test_Erectrical_2/Variable Resistor'方程式の場所: 'C:\Program Files\MATLAB\R2023b\toolbox\physmod\simscape\library\m\+foundation\+electrical\+elements\variable_resistor.ssc' (57 行) 'C:\Program Files\MATLAB\R2023b\toolbox\physmod\simscape\library\m\+foundation\+electrical\+elements\variable_resistor.ssc' (58 行)

Accepted Answer
More Answers (0)
Categories
Find more on 変数の初期化 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!