Value of simulation voltage source is not updated / transferred to simulation

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!


bild



bild

Test_20230706.zip (4.5 KB)

It seems to persist in tonights nightly too.

Application: KiCad Schematic Editor x86_64 on x86_64

Version: 7.99.0-1.20230706git88ffcec.fc37, release build

Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.2.0
FontConfig 2.14.1
libcurl/7.85.0 OpenSSL/3.0.9 zlib/1.2.12 brotli/1.0.9 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.3) libssh/0.10.5/openssl/zlib nghttp2/1.51.0

Platform: Fedora release 37 (Thirty Seven), 64 bit, Little endian, wxGTK, KDE, wayland

Build Info:
Date: Jul 6 2023 17:24:47
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.78.0
OCC: 7.6.3
Curl: 7.85.0
ngspice: 40
Compiler: GCC 12.3.1 with C++ ABI 1017

Build settings:

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?

7.0.5, Lubuntu 20.04.

I’ll try it out on 7.0.6 on fedora.

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.

Application: KiCad x86_64 on x86_64

Version: 7.0.6-1.fc37, release build

Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.2.0
FontConfig 2.14.1
libcurl/7.85.0 OpenSSL/3.0.9 zlib/1.2.12 brotli/1.0.9 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.3) libssh/0.10.5/openssl/zlib nghttp2/1.51.0

Platform: Fedora release 37 (Thirty Seven), 64 bit, Little endian, wxGTK, KDE, wayland

Build Info:
Date: Jul 5 2023 00:00:00
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.78.0
OCC: 7.6.3
Curl: 7.85.0
ngspice: 40
Compiler: GCC 12.3.1 with C++ ABI 1017

Build settings:
KICAD_SPICE=ON

This issue seems to now have been solved through commit:

(related to issue: Value of simulation voltage source is not updated / transferred to simulation (#15127) · Issues · KiCad / KiCad Source Code / kicad · GitLab )

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.