Designing a variable resistor logic for an input module
This is a good circuit for switching resistances. The gotcha is the gate level of Q1 needs to be higher than the drain so this circuit is only useful if you have a rail that is higher than the one you are switching.