Thanks for the answer, the above code works in Kicad but I would like to enter the some parameter values in the schematic (not in the file model) and pass the parameter in the model as I have already done in Altium.
Thank you,
Stefano
Attached you will find a project with simple potentiometers. Their values and ratios are transferred to the subcircuit by editing the ‘Spice model’ field. In addition to the subcircuit name (already there after attaching the model), add the parameter values to be transfered. These may either be given directly as numbers or via another ngspice parameter setting (see example).
solved the problem. (You can choose other default values for the parameters to suit.)
I would really like to know why there are quite a few such broken examples to be found on the internet. Did the format for the subckt command change at some point?