フィルターのクリア

error when using subcircuit2ssc to import spice to simulink

15 ビュー (過去 30 日間)
shaojun huang
shaojun huang 2020 年 8 月 29 日
回答済み: Roshan SB 2024 年 3 月 12 日
i wan to have a defined rise and fall time for mosfet, so I convert a spice model to simulink. I copy a subcircuit to txt file from a lib file, and then rename it to cir file.
IMZ120R030M1H_L1test.cir is renamed as IMZ120R030M1H_L1test.txt for uploading here.
>> subcircuit2ssc('IMZ120R030M1H_L1test.cir','+mylibrary');
error using spiceBase/getConnectionString
All external nodes must be connected in X_M2.
error in spiceSubckt/getSimscapeText
error in spiceSubckt/preparSimscapeFile
error in subcircuit2ssc
error in subcircuit2ssc (line 31)
subcircuit2ssc(netlist,target);
what can i do about this error?
  1 件のコメント
Matthew Mishrikey
Matthew Mishrikey 2021 年 7 月 21 日
I have a similar issue. Were you able to find a solution?

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

採用された回答

David John
David John 2021 年 8 月 3 日
It looks like you may be missing the definitions for the subcircuits that are required to fully define X$M2 and X$M2. In particular, there should be definitions for subcircuits Z26 and Z28 that cannot be found in your file.
Any component in your netlist where the name begins with X also requires its own subcircuit definition.
  1 件のコメント
David John
David John 2021 年 8 月 3 日
Small typo: "...fully define X$M1 and X$M2..."

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

その他の回答 (1 件)

Roshan SB
Roshan SB 2024 年 3 月 12 日
Seems like you have the wrong SPICE model. Reach out to any infi customer support and ask them for a Cadence PSPICE model and try again.

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by