Save Output Of Function To Variable Resistor