Gabriel Maranhão
09/27/2023, 12:10 AMprint var1
on ngspice terminal.
It would be good to click to load the waveform and this var1 load also at some place on the schematic. I did some research and did not find how to do that. Thanks!Boris Murmann
02/25/2024, 12:37 AMStefan Schippers
02/26/2024, 1:36 PM.control
op
let myparam=1.23456
settype voltage myparam
write cmos_example_ngspice.raw
...
.endc
then in the schematic I add a text element with following content:
tcleval(myparam: [xschem raw value myparam 0])
and in the props: textbox set floater=1
(so it will be evaluated by tcl). When data is annotated in the schematic the parameter will be too.
Explanation: the parameter will be saved in the raw file together with other simulation variables by the write command.
the xschem raw value node n
will return the n
-th step of simulated value for node
(in case of OP there is only point 0).Boris Murmann
02/26/2024, 5:00 PM