Ian McInerney
fdb97a46c1
Don't copy items in for loops when not needed
3 years ago
Mikolaj Wielgus
6450ec6b85
Sim: Spice netlist exporter rewrite
Rewrite the spice exporter to work with the new simulation model
architecture and data model, with many bugfixes related to the latter
two along the way.
4 years ago
Seth Hillbrand
9b4c293f14
Ensure that any excess spaces removed
The sim command may have additional whitespace between the type and
first char
4 years ago
Seth Hillbrand
82ba456567
Remove unnecessary RegEx
This broke for signals using underscores. More critically, RegEx is
fragile and should not be used with user input if at all possible
Fixes https://gitlab.com/kicad/code/kicad/issues/9421
4 years ago
Sylwester Kocjan
f9c5c97f74
eeschema, sim: fix wrong names of the signals
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9062
4 years ago
Wayne Stambaugh
37b200cb3e
Pass wxString objects by reference instead of on the stack.
4 years ago
Wayne Stambaugh
cb72da294a
More NULL expunging.
4 years ago
Wayne Stambaugh
dffe2661e6
Fix SPICE simulator plot bug.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1944
5 years ago
Mikolaj Wielgus
28531a982d
Simulator: Use SIM_WORKBOOK in place of wxAuiNotebook
SIM_WORKBOOK is now a subclass of wxAuiNotebook, removing the problem of
having to maintain two separate workbook states.
5 years ago
Sylwester Kocjan
b0e6bbb39c
eeschema: remove m_simCommand from SIM_WORKBOOK
5 years ago
Sylwester Kocjan
917e329bdf
eeschema: remove TRACE_DESC from SIM_WORKBOOK
5 years ago
Sylwester Kocjan
959ae73a01
Eeschema,sim: extract plot colors to new class
5 years ago
Marek Roszko
b80fdad511
Don't generate a format specifier length of ":"
It's ambiguous, are we talking the length of a human colon or a pigs?
Fix #7556
5 years ago
Sylwester Kocjan
6a48e21eb2
simulator: update dialog to handle R, I & TEMP DC sweeps
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2370
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6195
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2386
5 years ago
Seth Hillbrand
67bd49b4a8
Fix order-of-ops issue in sim plot
6 years ago
Sylwester Kocjan
fdccdd5cb9
Eeschema: adding .op SPICE simulation support
ADDED new tab on simulation settings dialog, which allows to run .op analysis.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2368
6 years ago
jean-pierre charras
0e51ed32f9
ADDED: Sim plot panel: option to plot on a white background or a black background.
6 years ago
Ian McInerney
00e58cd974
Fix unintialized values (from coverity scan)
6 years ago
Jonatan Liljedahl
f433037dcd
Eeschema: simulator: allow dotted traces for current and phase.
ADD: Allow drawing of current and phase traces with dotted style
for easier differentiation from voltage and magnitude. The option
is available in the View menu of the simulator.
6 years ago
Seth Hillbrand
c6f5df134c
Minor speed cleanup
This adjusts iterators to use const reference when only used for
copy. It also ensures pre-allocation of vectors when size is known
ahead of time.
6 years ago
jean-pierre charras
c5290de6ec
housekeeping:
Remove not used files:
- markdown2html is not used (we are using "Sundown" tool)
- newstroke_font_without_CJK.cpp is removed.
Due to code optimization the full font works fine without memory issues
-fix also a few very minor compil warnings
6 years ago
Jonatan Liljedahl
fa14d5b9fa
Eeschema: simulator: more trace colors, smarter color allocation
NEW: The simulator plot now avoids colors already in use, if possible.
The palette is replaced with a larger one with less saturated colors.
Fixes: lp:1851372
* https://bugs.launchpad.net/kicad/+bug/1851372
6 years ago
Jon Evans
5287ab6e4f
Eeschema: improve simulator behavior for two-source DC analysis
Fixes: lp:1830478
* https://bugs.launchpad.net/kicad/+bug/1830478
(cherry picked from commit 356ccd0314 )
7 years ago
Maciej Suminski
85ef058458
Spice simulator: change gain units to dBV
7 years ago
Maciej Suminski
61597db12d
Make the Simulator dialog strings translatable
8 years ago
Maciej Suminski
9960416e32
Spice simulator: plot currents in DC sweep simulation
Fixes: lp:1767457
* https://bugs.launchpad.net/kicad/+bug/1767457
8 years ago
Maciej Suminski
2018d48946
Fixed removal order in SIM_PLOT_PANEL::DeleteTrace()
9 years ago
jean-pierre charras
673b094b2b
Fix a few missing override qualifiers and shadowed vars.
9 years ago
Maciej Suminski
81e015036e
Fixes for drawing color labels in simulator's signal list
9 years ago
jp-charras
26b1c732de
Simulator: add simulator icon, and colored icons to identify more easily traces in trace list and cursor list.
9 years ago
jean-pierre charras
dd395a6854
Fix deprecated and shadowed var compil warnings
9 years ago
Maciej Suminski
eeeb3e0a9a
Simulator code formatting and clean up
9 years ago
Johannes Maibaum
c78462c4f5
sim: Modifications to compile the simulator on OSX.
9 years ago
Tomasz Wlostowski
1930cd4d66
sim: display labels on current scale when only currents are added to transient plot
9 years ago
Maciej Suminski
e452992a6c
Cursor centering fix
9 years ago
Maciej Suminski
ca36f15fee
Temporary disable cursor centering
9 years ago
Tomasz Wlostowski
b20f941bd0
sim: hopefully final version of plot axis unit/suffix handling.
9 years ago
Maciej Suminski
5772938a71
New cursor shows up in the center, can be dragged by its axis
9 years ago
Tomasz Wlostowski
e691565fe3
sim: updated label generation code to match changes in the mathplot api
9 years ago
Maciej Suminski
7d268d2608
Reset scales upon simulation relaunch
9 years ago
Maciej Suminski
9d8b40b93d
Reset scales when a plot is removed
9 years ago
Tomasz Wlostowski
8e4ae1968f
sim: working on improved UX [wip]
9 years ago
Maciej Suminski
7406aad8ea
Display current plots using the current axis
9 years ago
Maciej Suminski
07b451f4b1
Do not draw cursors outside margins
9 years ago
Maciej Suminski
b25781814d
Fixed cursors
9 years ago
Maciej Suminski
920cf09ac1
Fixed plot for DC sweep analysis
9 years ago
Maciej Suminski
38810930ec
Removed redundant TRACE_* classes
9 years ago
Maciej Suminski
5fdc32b79a
AC analysis plots using linear frequency scale
9 years ago
Maciej Suminski
0f993ba98c
Current probing
9 years ago
Maciej Suminski
cf28e843ba
Fix for crash when AC simulation is relaunched
9 years ago