Hi! I’m new to Qspice and not going back. I have a question that may turn into a feature request.
I often have a circuit that can be configured in multiple modes meaning that a few parts are either DNI or with different values. I’d like to be able to run the sim for each mode.
Seems like what is needed is a rudimentary scripting ability. Maybe just the equivalent to a C switch statement that evaluates before each run.
Simplified example:
param state=0
switch(state)
{
case 0:
R1=1K;
C1=1n;
state=1;
break;
case 1:
R1=10K;
C1=1p;
state=2;
break;
default;
}
This would allow for multiple states of the circuit. Any thoughts?
Or, is there a way to do this using a C++ block?