¿ªÔÆÌåÓý

Re: More syntax issues with 24.1.x


 

On Tue, Mar 4, 2025 at 12:06 PM, Tony Casey wrote:
I have many testjigs that import digitised datasheet characteristic curves. An example of this would be:

.subckt IB_400u 1 2 3 4
R1 3 4 1G
B1 1 2 I=table(V(3,4)
.inc BC848B_Ic_Vce_400u.inc
+)

The file BC848B_Ic_Vce_400u.inc is a simple table:

+, 0, 0
+, 0.033713692946058194, 0.0037373737373737337
+, 0.07139456405596434, 0.007119195585620269
+, 0.09937242651150191, 0.01031229370884544
+, 0.11993258152246877, 0.014095645315621533
etc.
Yes, this won't work anymore. Prior versions pre-process the input and replace the .include line with the contents of the included file and then parse everything all over again. 24.1 is very different, it doesn't accept a top-level directive in the middle of something.
But you don't actually need such general behavior, all you want is to load data from another file, and that's certainly useful. How about extending the table syntax:
?
B1 1 2 I=table(V(3,4), "BC848B_Ic_Vce_400u.inc")
?
This would be easy to do. You'd still have to modify your netlists, though.

This issue seems to be related to the previously reported issue with nested .STEP directives of the form:

.step param A? 0 10 1
+ param B list 1 2 5 10

..where the 2nd line is failing with 24.1.x. Example schematic uploaded: LTspice_24.1_Step_problem.
?
This should work and does work for me if I try, but you obviously have a case where it doesn't. Unfortunately, you uploaded the wrong file. I'd appreciate a netlist or schematic.
?
Best Regards,
Mathias
?

Join [email protected] to automatically receive all group messages.