I am trying to use the textbox in schematic to do certain things but can not find a documentation e.g.
.param Freq=100k
.param tau = 1/Freq
.param R = 3.3k
.param C=tau/R
print(C)
how to print values
change or assign values to capacitor, inductor or resistor
can somebody help, please
You will have to delve a bit into the ngspice capabilities (see the ngspice manual at Ngspice, the open source Spice circuit simulator - Documentation: manual and control flow, version 42), chapter 2.9 on parameters and 17.5 on commands in a .control section).
Attached you will find a project with parameters and printing a parameter (not into a text box, which is not (yet) supported by Eeschema, but into the simulator output).
params.7z (4.8 KB)
thanks a lot. This was very helpful. I understand that all data is available in
simulation → show Spice Netlist. This is composed of
- definition of probes
- content of textbox (my own program)
- Netlist from schematic
If values in the circuit in the schematic are to be changed/defined then this must be declared in the textbox as variable and will afterwards be used in the netlist (and it worked well in my example)
This topic was automatically closed after 90 days. New replies are no longer allowed.