Resistor variable setting