I am sweeping the tempareture and i wouzld like to get a measure of the signal.
I have a bandgap reference and i would like to measure the maximum value of bandgap voltage, sweeping the temperature.
.measure dc ymax MAX v(vbg) from=-40 to=150
But i get this error
Error: no such vector as time, frquency or v-sweep.
Error: measure ymax max v(vbg) : out of interval
meas dc ymin max v(vbg) from=-40 to=150 failed!
In that line, there is nothing to tie the numbers -40,150 to temperature. I think they will be treated as DC voltages. Manual 1.3,2 shows temperature sweeping, is that what you are using?
It may be that after such a sweep, the values in .measure should be automatically applied to temperature , but that is not happening. That would be a bug, and bugs must usually be reproduced as a first step. So please post a complete netlist that demonstrates the problem.
Meanwhile, you should be able to do the measurement with scripting, by adding a .control section to the netlist.
Last edit: Giles Atkinson 2023-12-07
Here the netlist. for transient it works fine.
Thanks, someone will take a look. If me, it may take a few days.
Currently only
meas dc ...
with scale vector v-sweep is supported (no i-sweep, res-sweep, nor temp-sweep).
I will have a look if this may be enhanced without too much effort, so to become available in ngspice-42.
I have got a fix, and its output is
A little more testing is due before uploading.
I have uploaded a fix to ngspice git branch pre-master-42.
Thank you very much, i will wait for the official release