Replies: 2 comments 9 replies
-
The parser doesn't support "startup" keyword for .TRAN. Because of that it ignores whole .TRAN statement Please find supported syntax here for .TRAN The parser needs to be improved. I will resume heavy work on it. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I made a mistake. My second variation was .TRAN 25m 150m |
Beta Was this translation helpful? Give feedback.
-
Hi, I have taken the Parser Demo and replaced the netlist with a Spice list from the LTSpice astable.asc like this:
var netlistText = string.Join(Environment.NewLine,
"R1 n001 n002 2k",
"R2 n001 n003 2k",
"R3 n002 n004 101k",
"R4 n003 n005 100k",
"C1 n003 n004 .01µ",
"C2 n005 n002 .01µ",
"V1 n001 0 5",
"Q1 n003 n005 0 0 2n3904",
"Q2 n002 n004 0 0 2n3904",
".MODEL 2n3904 npn(is=1e-14 vaf=100 bf=300 ikf=0.4 xtb=1.5 br=4 cjc=4e-12 cje=8e-12 rb=20 rc=0.1 re=0.1 tr=250e-9 tf=350e-12 itf=1 vtf=2 xtf=3 vceo=40 icrating=200m mfg=nxp)",
".TRAN 25m startup",
".END");
When executing I get the "Invalid Operation Exception: Sequence contains no elements" at the following statement:
var simulation = spiceSharpModel.Simulations.Single();
What is the Parser talking about ?
Beta Was this translation helpful? Give feedback.
All reactions