2
\$\begingroup\$

I am currently working on bulk simulations. For this I created a Python script which writes in the .asc files of LTspice and creates long tables, which are stepped through with the run variable. This is to write predefined simulation runs.

I need to create files which run about 1,000,000 simulations long. After I ran the python script the file was about 2.7GB big. But now LTspice refuses to open it. When I try to open it it loads and after a minute or so it just closes the window without any message or notice. And there isnt even a crash note.

According to LTspice, there should be no file limitations, but I think there actually is one. And my PC cant be the problem, I have 64GB of ram and a 12 core processor (Ryzen 9 3900x).

So how do I solve this?

\$\endgroup\$
  • \$\begingroup\$ File may be too big to be written or read "at once" at T time & have been corrupted by a bad priority of writting processus (not in good order) this happens rarerely but it happens. You can avoid that kind of issue with git so you can always go back to a previous version or other branch of your file whatever happens ... \$\endgroup\$ – francois P Nov 20 '19 at 14:37
  • 1
    \$\begingroup\$ LTSpice has data limitations, it can handle e.g. 65536 entries per voltage node/current (see electronics.stackexchange.com/a/448643/200815). You could try limiting the Python script to 65535 datapoints and check if this is the issue. \$\endgroup\$ – Huisman Nov 20 '19 at 22:32
  • \$\begingroup\$ @Huisman While that is true, it does not apply to OP, who can't open the file, so OP can't even simulate. \$\endgroup\$ – a concerned citizen Nov 21 '19 at 17:09
  • \$\begingroup\$ @aconcernedcitizen I think you are not correct. OP writes: When I try to open it it loads and after a minute or so (so LTSpice succeeds to open it) it just closes the window without any message or notice. I think LTspice succeeds to open it, but exceeds a data limit and crashes. It might be due to the datapoints limit, but I am not sure. Hence the comment, not an answer. \$\endgroup\$ – Huisman Nov 21 '19 at 18:05
  • \$\begingroup\$ Since Python is able to generate the file, I would think the OS also supports such large files and would therfore conclude the problem lies within LTspice. \$\endgroup\$ – Huisman Nov 21 '19 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.