So I would like to have a pot model that I can "turn" the pot knob as part of a parameter sweep.
I have the following model:
.SUBCKT SIMPLEPOT__POT__1 1 T 2 PARAMS: VALUE=1k SET=0.5
RT 1 T {VALUE*(1-SET)+0.001}
RB T 2 {VALUE*SET + 0.001}
This works fine as a simple model and, in fact, when I go to "edit model" on the part on the schematic, it gives me a box for "Current instance parameters:" as PARAMS: VALUE=1k SET=0.5 that I can edit.
However, when I try to run a parameterized sweep, I can't get hold of VALUE or SET anywhere. I can access rt & rb separately as part of "device parameters" (which doesn't really do any good since I want them to change simultaneously, not as a nested sweep), but I can't access the custom parameters.
Is there another way of setting a model up where I can access custom parameters in a sweep?
Best regards,
Mike