<@U01819B63HP> is it possible to annotate direct o...
# xschem
g
@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.5 save 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
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
@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
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).
🙌 2
b
Excellent, thank you!