@Stefan Schippers is it possible to annotate direct on schematic some variable that I calculate, for example using .meas ?
An example, I did some calculation and got some variable value:
let var1 = 1.5 + 3.5save var1
How to annotate this exact value of var1 on my schematic, I did a DC simulation, there is no op simulation.
Right now I'm using
print 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!
b
Boris Murmann
02/25/2024, 12:37 AM
Coming back to this old thread. Has anyone figured out how to display meas results in xschem? Would indeed be nice to have...
👀 2
s
Stefan Schippers
02/26/2024, 1:36 PM
@Boris Murmann I did this example:
Copy code
.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
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.