I observe the following problem in the latest nightly build for fedora 37. Is there someone out there who can reproduce it?
Start a new project, open schematic.
Insert simulation dc voltage source from KiCad default library. It has a default voltage of 1V, shown in the schematic like in the screenshot below.
Insert resistor, for example 1k.
Insert ground.
Connect voltage source to ground and resistor.
Klick simulation icon → simulation window opens.
Choose operating point simulation and run simulation (play button).
Result given is 0V, 0A. There is a message that the value of the voltage source V1 is missing and 0V is assumed.
If I change the value to 2V in the schematic by double klicking the value and entering a new one → same result.
Only if I go into the simulation model dialog and enter the value manually there, will the simulation get the voltage value.
If I then go back to the schematic and enter 3V, the simulation value will still be 2V.
There is a disconnect between the value shown in the schematic and the one in the simulation dialogue.
I suspect that this behaviour / misbehaviour causes further issues, for example schematics that I could simulate a couple days ago with earlier nightly, give completely broken results today. But I’ll start with this simple test to see if it is just me or if it happens to others too…
Thanks in advance!
This is not new, both 6.0 and 7.0 have the same issue, and it’s frustrating, I agree.
My solution is to right-click “Properties”, enter the new value, and then select a different field in the dialogue before clicking OK. Only then will the new value be transferred to the ngspice parameters.
For me the sequence you describe does not work. And there is a difference somewhere fairly recently.
A few days or a week or two ago or so, the changes did propagate from properties to simulation model, even for the voltage source. At least I never had to enter the value twice in order for it to end up in simulation.
It might be that there are two different issues that you and I see, that are fairly close in appearance.
What version and operating system do you run, where the strategy you describe works?
At least, when I insert the Simulation SPICE → VDC voltage source from the library in 7.0.6, it has the voltage set to 1V by default not only in the schematic and properties (“value”), but in the Properties → Simulation model editor dialog window too, which is not the case on Nightly as described in my first post on this thread.
Update: I seem not to be able to reproduce the behaviour you describe, on fedora with 7.0.6.
Even if I just type a new value in either the properties or simulation model editor dialogues or directly in the schematic, and immediately klick OK without moving to another field, the new value is present also in the SPICE simulation. It seems to behave normally for me.