Converting values to analog output