I’m evaluating a worst case resistor tolerance on a simple 12V measurement circuit.
It’s using the standard 2 functions (binary and wc) to do so and some behavioral voltage sources to plot the results.
When adding some .meas statements I noticed that they report wrong values when the “.option listparam” is disabled and correct values when it is enabled.
Why is that?
If I recall correctly, waveform data (.qraw) does not store parameters (.param) for each step by default. To force the storage of parameters as waveform data, you must use .option saveparam. Additionally, .option listparam also sets the bit for saveparam, which is why your step parameters were successfully stored in the waveform data.
I suspect that without that option, your equation was using a fixed parameter for its computation. Regardless, if your calculation requires parameters that change via .step command, you must include .option saveparam.
This is my note about .param and .option saveparam