Simscape Electrical is not compiling my SPICE netlist.

12 Ansichten (letzte 30 Tage)
Abhishek Ram
Abhishek Ram am 23 Jun. 2022
Beantwortet: Sabin am 22 Dez. 2022
Hello everyone. I am new to Simscape Electrical and SPICE. I understand that you can interface SPICE netlists with Simscape Electrical. However, when I use the relevant command, subcircuit2ssc, I return the below set of errors. I came across this post from someone else who ran into the same error, but I don't think their solution applies to my situation because the only parameter I call in is "TJ" and that is defined in my first subcircuit. I have attached my netlist as a .txt file. Thank you in advance for your help!
Index exceeds the number of array elements (5).
Error in spiceVCVS
Error in spiceSubckt/getElements
Error in spiceSubckt/loadSubckt
Error in spiceSubckt
Error in subcircuit2ssc
Error in subcircuit2ssc (line 29)
[subcircuitArray, unsupportedInfo] = subcircuit2ssc(netlist,target);

Antworten (1)

Sabin
Sabin am 22 Dez. 2022
I was able to modify slightly the netlist you attached such that the conversion will work. The issue was the missing label for subcircuits A and B in the main subcircuit. I have attached the updated file. I hope this helps.

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by