On Thu, May 22, 2025 at 07:04 PM, Hawker wrote:
C:\Users\{user}\Documents\LTspice\user.jft(1): Syntax error (unexpected input).
.MODEL 2N5457 NJF(VTO=-1.8 BETA=0.00135 LAMBDA=0.001 RD=35 RS=31.5 + CGS=2.25E-12 CGD=6E-12 KF=6.5E-17 AF=0.5 )
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ^^^^^^^^^
It appears that older versions of LTspice accepted that errant plus sign (+) in the middle of the .MODEL statement, which should not have been there.? But the latest version rejects it and tells you that it is wrong.
?
Some might argue that LTspice should have rejected it all along, or at the least should have issued a Warning message.? But it is not that simple, because SPICE syntax always was a little loose, allowing some things which should not be there.? Extra parentheses sometimes do not matter when they are found in SPICE Netlists (with exceptions).? But a random misplaced plus sign where it does not belong?? Some would say it is a no-no.
?
One could argue either way.? Which is a way of saying that you could try suggesting to Analog Devices that LTspice version 24.1.x should not reject that line for that reason.? But you have nothing to stand on.? As far as I know, there never was anything in SPICE's history that says plus signs can be inserted randomly in Netlists with no consequence.
?
My personal feeling is the plus sign should not be allowed there, and an error or warning was appropriate.
?
Andy
?
?