Dominique wrote:it make a table starting with 0V and ending zo 20V. If I run the same command with "--sig_max -20", the table start at -20V and stop at 0V. This show the amp is not symmetrical in its response to saturation, which is due to the driver stage. It would be nice to be able to make tables using 2 parameters, a sig_max and a sig_min.
pyplot does always plot from low to high, hence the table start at -20.
The logic I've implemented for interpolate the table was only good for positive signals. I guess that is a big part of the difference you've seen.
I've now pushed a new version to git, introduce two new options,
-g N or --table_neg N = build negative nonlinear response table from the N\'t circuit
and
-S or --scip_div = skip the divider for the negative nonlinear response table
the divider is used to translate the table into the digital domain (0 <-> 1) , default is, that the divider calculated for the positive sig, get used for the negative sig as well, you could scip that and a new divider will be calculated for the negative table.
--table_neg N were N is the number of the schematic you'll generate a negative table for. You could generate multiple as before with --table 1 2 3 . .
but, when a negative table is generated, a positive will be generated (and used) as well.
On the road again.