On 18/07/2023 03:33, Andy I wrote:
I don't understand
what you said about naming curves on a plot.? I do not think you
can do that (except by defining functions in the waveform
viewer).? But whatever node names you used on the schematic will
show in the plot window.
That's not quite true. As you say, you can define functions and save
them in plot.defs.
So, for example:
.func hFE() {Ic(Q1)/Ib(Q1)}
..allows you to label a plot hFE() - useful in device testjigs.
Another useful one is:
.func NF(R,T)
{10*log10(V(inoise)*V(inoise)/(4*k*(T+273.15)*R))}
..which allows the label NF(1k,25) to be used as the circuit's noise
figure as a function of source resistance and temperature (in
¡ã°ä).
Using:
.noise V(out) V1 list 1k
..and stepping a parameter Rsrc as the source resistance, you can
plot the noise figure vs. source resistance at 1kHz:
NF({Rsrc},25)
--
Regards,
Tony