Right now, NGSPICE support DC sweep for Voltage(V), Current(I), Temperature(temp) and Resistor(R). If I define a parameter, can we do a sweep on the newly defined parameter?
No, this is not implemented in C code. And it would mean some effort to implement it, because we have various 'parameters'. These are the .param parameters, as well as instance (element line) and model parameters.
And in addition, we can define such sweeps with our control language. So the motivation to start coding is not (yet) very high.
Attached you will find three netlist files, dealing with sweeping the above named three paramaters with a very simpple circuit example (resistive divider). Please have a look and check if these may be a basis for your measurement needs.
No, this is not implemented in C code. And it would mean some effort to implement it, because we have various 'parameters'. These are the .param parameters, as well as instance (element line) and model parameters.
And in addition, we can define such sweeps with our control language. So the motivation to start coding is not (yet) very high.
Attached you will find three netlist files, dealing with sweeping the above named three paramaters with a very simpple circuit example (resistive divider). Please have a look and check if these may be a basis for your measurement needs.