I'm trying to create a model of an analogue switch, I'm sure that one already exists but this is to be used in a more complex model.
I have tried to modify some code from an existing model but I get an error that states "can't find definition of model 'Value". What am I missing?
.subckt TestR N1 N2 POS NEG
R1 N1 N2 value={ if( V(POS) > 2.5 , 0.01, 1000meg ) }
R2 POS NEG 1000meg
.ends