wishlist: add custom vectors to plot window by name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Committed
|
Undecided
|
Jonatan Liljedahl |
Bug Description
Using ngspice `let foo=...` is a powerful way to create custom vectors by doing math on existing vectors, etc. For example `let AB=V("/
The problem is that such custom vectors does not show up in the list of signals in the built in simulator plot window. An easy solution would be to just allow adding any signal by name via a text entry. This could then auto-complete to the available net names, but also allow names that are *not* in the list of nets, such as `AB` above. It would also greatly speed up the process of adding signals instead of having to scroll through all the auto-named `Net-(Device-PadN)` signals.
As can be seen in the above forum post, I did found a trick to have custom vectors show up, by adding a global netlabel using the same name, connected to a dummy resistor. This works, but is a work-around, and has the problem that those curves are not updated when you change values in the schematic and re-run the simulation. One has to either close and re-open the plot window, or re-add the signals again.
In any case, this shows that such functionality would be an easy add! Unfortunately I haven't managed to compile kicad on macOS, otherwise I'd give it a go myself :)
Application: Eeschema
Version: (5.1.5-
Libraries:
wxWidgets 3.0.4
libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.5.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.4 (wchar_t,STL containers,
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 9.0.0 with C++ ABI 1002
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
Changed in kicad: | |
assignee: | nobody → Jonatan Liljedahl (kymatica) |
status: | New → In Progress |
tags: | added: eeschema |
Changed in kicad: | |
milestone: | none → 6.0.0-rc1 |
I've now sent an updated patch that implements this feature to the dev mailing list.