Hi guys
Was anyone able to run the ibis.test.7z project from holger (see above)?
I run only into a couple of error messages
Can't open viewport for graphics.
\Users\***********
ngspice-42 done
Note: 'quit' asks for detaching ngspice.dll.
Note: can't find the initialization file spinit.
******
** ngspice-42 shared library
** Creation Date: Dec 31 2023 07:13:41
******
Note: No compatibility mode selected!
Circuit: *
Note: No compatibility mode selected!
Circuit: KiCad schematic
Error on line:
v.xu1.vku xu1.ku 0 pwl ( )
parameter value out of range or the wrong type
Error: circuit not parsed.
Error: vector time not found!
Error: vector time not found!
With today’s nightly I do not see any problems (two different machines running MS Windows). My previous nightly from Jan. 3rd seemed to have some problem.
@holger, FYI I have created a repository on GitHub containing the simulation projects from this post and embedded the documentation and screenshots in README files.
Unfortunately I will not have any resources to act as maintainer of your GitHub repository. This should be your task, and I hope that you are able to run this for some time.
@holger, I had no expectations of you maintaining my repository with your content. But I didn’t want to prevent you from doing so, which is why I gave you maintenance privileges to the repo.
I will do my best to keep my KiCad Simulations repository up to date with your good work.
If you ping me of any changes, updates or new simulations I will make sure to update.
I like the Idea of turning this into a Wiki.
Wiki pages are also editable by a lot more people. (This forum logs changes in GIT or similar, so vandalism can be reversed).
I think it’s also a good idea to clean up this thread a bit. Delete all posts not directly showing examples and such.
Better yet: store KiCad simulation example source files in a Git repository, so they can easily be maintained, downloaded, synched and tagged and checked for changes. And documentation can follow along in associated markdown files.
Like any other source code
Thanks for making the examples. It is delightful to be able to model circuits this way.
While testing your “Step down converter with LM2576” with the nightly build from docker, I found a problem. The LM2576.7z file contains a pspice model in LM2576_TRANS.LIB.
On line 27 there are some non-UTF8 characters that will cause KiCad to fail to read the spice files. It won’t say much about the problem. The first sign that something is wrong is that no models will appear in the UI after you select the .LIB file. If you try to simulate the netlist will be empty.
I suspect the issue is with the definition of the spice parser in kicad. I suspect SafeReadFile() in common/richio.cpp is returning a blank string without giving the user feedback about the bad characters or their location.
Until this can be fixed it might be good to tell simulation users to check their spice files for non-UTF8 characters if they have problems simulating.
You can see there are two bytes with the value 0x96 on line 27.